]>
Commit | Line | Data |
---|---|---|
0d6cc79d SF |
1 | #!/bin/bash |
2 | # | |
3 | # Script to run wio helpers | |
4 | # | |
5 | . /var/ipfire/wio/wio.conf | |
6 | ||
7 | MINUTE=`date +%M` | |
8 | ||
9 | if [ $ENABLE == on ]; then | |
10 | ||
11 | if [ $(($MINUTE%$CRON)) == 0 ]; then | |
12 | /var/ipfire/wio/wio.pl > /dev/null | |
13 | fi | |
14 | ||
15 | if [ $OVPNRWMAIL == on ]; then | |
16 | if [ $(($MINUTE%$OVPNCRON)) == 0 ]; then | |
17 | /var/ipfire/wio/wiovpn.pl > /dev/null | |
18 | fi | |
19 | else | |
20 | rm -f /var/log/wio/.vpncache | |
21 | rm -f /var/log/wio/.ovpncache | |
22 | fi | |
23 | ||
24 | fi |