|
@@ -1360,24 +1360,13 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
|
1360
|
1360
|
function_check pihole_change_ipv4
|
1361
|
1361
|
pihole_change_ipv4 ${NEW_STATIC_IP}
|
1362
|
1362
|
|
1363
|
|
- systemctl restart networking
|
1364
|
|
-
|
1365
|
|
- # see if the IP address has changed
|
1366
|
|
- IPv4_address=$(get_ipv4_address)
|
1367
|
|
- if [[ "$IPv4_address" == "${NEW_STATIC_IP}"* ]]; then
|
1368
|
|
- pihole_update
|
1369
|
|
- dialog --title $"Static local IP address" \
|
1370
|
|
- --msgbox $"The IP address of this system is now set to ${NEW_STATIC_IP}" 6 50
|
1371
|
|
- else
|
1372
|
|
- dialog --title $"Static local IP address" \
|
1373
|
|
- --backtitle $"Freedombone Control Panel" \
|
1374
|
|
- --defaultno \
|
1375
|
|
- --yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
|
1376
|
|
- sel=$?
|
1377
|
|
- case $sel in
|
1378
|
|
- 0) reboot;;
|
1379
|
|
- esac
|
1380
|
|
- fi
|
|
1363
|
+ dialog --title $"Static local IP address" \
|
|
1364
|
+ --backtitle $"Freedombone Control Panel" \
|
|
1365
|
+ --yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
|
|
1366
|
+ sel=$?
|
|
1367
|
+ case $sel in
|
|
1368
|
+ 0) reboot;;
|
|
1369
|
+ esac
|
1381
|
1370
|
fi
|
1382
|
1371
|
fi
|
1383
|
1372
|
}
|