File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,20 @@ add_sync_file /etc/config/flashstart
1212
1313if [ " $ACTION " == " NOTIFY_BACKUP" ]; then
1414 update_cron " disable" " flashstart-auth"
15- # make sure flashstart is disabled, so the firewall can resolve DNS
15+ # make sure flashstart is disabled, so the firewall could eventually resolve DNS (if it has Internet access)
1616 if [ " $( uci -q get flashstart.global.enabled) " == " 1" ] && [ " $( uci -q get dhcp.@dnsmasq[0].server) " == " 127.0.0.1#5300" ]; then
1717 uci delete dhcp.@dnsmasq[0].server
1818 uci add_list dhcp.@dnsmasq[0].server=" 1.1.1.1"
1919 uci commit dhcp
2020 fi
2121elif [ " $ACTION " == " NOTIFY_MASTER" ]; then
22- uci delete dhcp.@dnsmasq[0].server
23- uci add_list dhcp.@dnsmasq[0].server=" 127.0.0.1#5300"
24- /usr/sbin/flashstart-apply
25- update_cron " enable" " flashstart-auth"
22+ if [ " $( uci -q get flashstart.global.enabled) " == " 1" ]; then
23+ uci delete dhcp.@dnsmasq[0].server
24+ uci add_list dhcp.@dnsmasq[0].server=" 127.0.0.1#5300"
25+ uci commit dhcp
26+ /usr/sbin/flashstart-apply
27+ update_cron " enable" " flashstart-auth"
28+ fi
2629fi
2730
2831keepalived_hotplug
You can’t perform that action at this time.
0 commit comments