|
@@ -1481,8 +1481,9 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
|
1481
|
1481
|
esac
|
1482
|
1482
|
|
1483
|
1483
|
if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then
|
1484
|
|
- ip_addresses_have_changed=
|
|
1484
|
+ ip_addresses_have_changed=1
|
1485
|
1485
|
if [ -f /etc/network/interfaces.d/static ]; then
|
|
1486
|
+ ip_addresses_have_changed=
|
1486
|
1487
|
if ! grep -q "address ${NEW_STATIC_IP}" /etc/network/interfaces.d/static; then
|
1487
|
1488
|
ip_addresses_have_changed=1
|
1488
|
1489
|
fi
|