Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
Re-added "REBOOT_ENABLE" in reboot policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo committed Dec 16, 2016
1 parent d4eee54 commit 2daaad7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/views/access_points/_vpn_script_down.erb
Expand Up @@ -22,9 +22,11 @@
# When openvpn lost connection restart AP, after config time
# This will place the AP in safemode
REBOOT_ENABLE=`uci -q get owispmanager.vpn_fail.reboot_enabled || echo 0`
REBOOT_DELAY=`uci -q get owispmanager.vpn_fail.reboot_delay || echo 180`
if [ ! -f "/tmp/will_reboot" ];
then
touch /tmp/will_reboot

if [ "$REBOOT_ENABLE" -eq "1" ]; then
if [ ! -f "/tmp/will_reboot" ]; then
touch /tmp/will_reboot
fi
fi

return 0

0 comments on commit 2daaad7

Please sign in to comment.