Files
bpfire/src/wio/wio
Stephan Feddersen 0d6cc79d98 WIO: first addon release v1.3.1
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-08-15 11:45:46 +01:00

25 lines
397 B
Bash

#!/bin/bash
#
# Script to run wio helpers
#
. /var/ipfire/wio/wio.conf
MINUTE=`date +%M`
if [ $ENABLE == on ]; then
if [ $(($MINUTE%$CRON)) == 0 ]; then
/var/ipfire/wio/wio.pl > /dev/null
fi
if [ $OVPNRWMAIL == on ]; then
if [ $(($MINUTE%$OVPNCRON)) == 0 ]; then
/var/ipfire/wio/wiovpn.pl > /dev/null
fi
else
rm -f /var/log/wio/.vpncache
rm -f /var/log/wio/.ovpncache
fi
fi