Consistent variable name
This commit is contained in:
parent
84adebc17b
commit
5b1b0b82fd
|
@ -1342,7 +1342,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
|
|||
fi
|
||||
if [ $ip_addresses_have_changed ]; then
|
||||
write_config_param "NETWORK_IS_STATIC" "1"
|
||||
write_config_param "STATIC_IP_ADDRESS" "$NEW_STATIC_IP"
|
||||
write_config_param "LOCAL_NETWORK_STATIC_IP_ADDRESS" "$NEW_STATIC_IP"
|
||||
write_config_param "ROUTER_IP_ADDRESS" "$NEW_STATIC_GATEWAY"
|
||||
|
||||
email_change_relay "$NEW_STATIC_IP"
|
||||
|
|
|
@ -55,11 +55,11 @@ function wifi_static_network_interface {
|
|||
echo '#this line must always be here' >> /etc/network/interfaces
|
||||
echo 'iface default inet dhcp' >> /etc/network/interfaces
|
||||
else
|
||||
read_config_param "STATIC_IP_ADDRESS"
|
||||
read_config_param "LOCAL_NETWORK_STATIC_IP_ADDRESS"
|
||||
read_config_param "ROUTER_IP_ADDRESS"
|
||||
echo '#static address' >> /etc/network/interfaces
|
||||
echo 'iface default inet static' >> /etc/network/interfaces
|
||||
echo " address ${STATIC_IP_ADDRESS}" >> /etc/network/interfaces
|
||||
echo " address ${LOCAL_NETWORK_STATIC_IP_ADDRESS}" >> /etc/network/interfaces
|
||||
echo ' netmask 255.255.255.0' >> /etc/network/interfaces
|
||||
echo " gateway ${ROUTER_IP_ADDRESS}" >> /etc/network/interfaces
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue