Files
dynamic-status/shared.so
2016-07-29 19:08:33 +02:00

20 lines
469 B
Plaintext

# 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
}