initial commit

This commit is contained in:
2016-07-29 19:08:33 +02:00
commit a581a1843d
5 changed files with 178 additions and 0 deletions

19
shared.so Normal file
View File

@@ -0,0 +1,19 @@
# SHARED FUNCTIONS AND COMMANDS
# Test if config.cfg exists and set needed variables
if [ ! -e "$CURDIR"/config.cfg ]; then echo "Missing config.cfg file. Edit and rename config.cfg.sample"; exit 1; fi
source "$CURDIR"/config.cfg
# Create temp settings file
TMP=/tmp/statusbars
if [ ! -e "$TMP" ]; then
touch "$TMP"
fi
source "$TMP"
# WRITE TMP
function wtmp {
> $TMP
echo "var_mailqueue_runs=$var_mailqueue_runs" >> $TMP
echo "var_conn=$var_conn" >> $TMP
}