Bläddra i källkod

Update pihole before restarting the network

Bob Mottram 8 år sedan
förälder
incheckning
fc9d76452e
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3
    1
      src/freedombone-controlpanel

+ 3
- 1
src/freedombone-controlpanel Visa fil

1375
             echo ''
1375
             echo ''
1376
             echo $'If you logged in using the previous IP address then you may need to close this terminal and log in again on the new one.'
1376
             echo $'If you logged in using the previous IP address then you may need to close this terminal and log in again on the new one.'
1377
 
1377
 
1378
+            function_check pihole_change_ipv4
1379
+            pihole_change_ipv4 ${NEW_STATIC_IP}
1380
+
1378
             systemctl restart networking
1381
             systemctl restart networking
1379
 
1382
 
1380
             # see if the IP address has changed
1383
             # see if the IP address has changed
1384
                 dialog --title $"Static local IP address" \
1387
                 dialog --title $"Static local IP address" \
1385
                        --msgbox $"The IP address of this system is now set to ${NEW_STATIC_IP}" 6 50
1388
                        --msgbox $"The IP address of this system is now set to ${NEW_STATIC_IP}" 6 50
1386
             else
1389
             else
1387
-                pihole_change_ipv4 ${NEW_STATIC_IP}
1388
                 dialog --title $"Static local IP address" \
1390
                 dialog --title $"Static local IP address" \
1389
                        --backtitle $"Freedombone Control Panel" \
1391
                        --backtitle $"Freedombone Control Panel" \
1390
                        --defaultno \
1392
                        --defaultno \