Browse Source

Consistent variable name

Bob Mottram 8 years ago
parent
commit
5b1b0b82fd
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/freedombone-controlpanel
  2. 2
    2
      src/freedombone-utils-wifi

+ 1
- 1
src/freedombone-controlpanel View File

@@ -1342,7 +1342,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
1342 1342
         fi
1343 1343
         if [ $ip_addresses_have_changed ]; then
1344 1344
             write_config_param "NETWORK_IS_STATIC" "1"
1345
-            write_config_param "STATIC_IP_ADDRESS" "$NEW_STATIC_IP"
1345
+            write_config_param "LOCAL_NETWORK_STATIC_IP_ADDRESS" "$NEW_STATIC_IP"
1346 1346
             write_config_param "ROUTER_IP_ADDRESS" "$NEW_STATIC_GATEWAY"
1347 1347
 
1348 1348
             email_change_relay "$NEW_STATIC_IP"

+ 2
- 2
src/freedombone-utils-wifi View File

@@ -55,11 +55,11 @@ function wifi_static_network_interface {
55 55
         echo '#this line must always be here' >> /etc/network/interfaces
56 56
         echo 'iface default inet dhcp' >> /etc/network/interfaces
57 57
     else
58
-        read_config_param "STATIC_IP_ADDRESS"
58
+        read_config_param "LOCAL_NETWORK_STATIC_IP_ADDRESS"
59 59
         read_config_param "ROUTER_IP_ADDRESS"
60 60
         echo '#static address' >> /etc/network/interfaces
61 61
         echo 'iface default inet static' >> /etc/network/interfaces
62
-        echo "    address ${STATIC_IP_ADDRESS}" >> /etc/network/interfaces
62
+        echo "    address ${LOCAL_NETWORK_STATIC_IP_ADDRESS}" >> /etc/network/interfaces
63 63
         echo '    netmask 255.255.255.0' >> /etc/network/interfaces
64 64
         echo "    gateway ${ROUTER_IP_ADDRESS}" >> /etc/network/interfaces
65 65
     fi