mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 23:43:00 +02:00
25 lines
397 B
Bash
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
|