mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 01:38:25 +02:00
wio: moved files from src/wio directory to standard IPFire location
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
1ee6f37fb4
commit
b1584da093
24
config/wio/wio
Normal file
24
config/wio/wio
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user