]> git.ipfire.org Git - people/stevee/network.git/commitdiff
wpa_supplicant: Rename zone variable to device
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2017 21:42:50 +0000 (21:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2017 21:49:31 +0000 (21:49 +0000)
Since we are using this for ports now, too, the variable
should have a generic name and the zone check must be removed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/helpers/wpa_supplicant

index e0465d0f998b958bddb29365554ccadfd11b30e7..69ee0ee506f2ff8f01fd077da696a561a7232653 100644 (file)
 # Read network settings
 network_settings_read
 
-zone="${1}"
-assert isset zone
-assert zone_exists ${zone}
+device="${1}"
+assert isset device
 
 # Create socket dir.
 mkdir -p ${WPA_SUPPLICANT_SOCKET_DIR} 2>/dev/null
 
-config_file="$(wpa_supplicant_config_dir ${zone})/wpa_supplicant.conf"
+config_file="$(wpa_supplicant_config_dir ${device})/wpa_supplicant.conf"
 
-cmd="wpa_supplicant -i ${zone} -c ${config_file}"
+cmd="wpa_supplicant -i ${device} -c ${config_file}"
 
-if device_is_wireless ${zone}; then
+if device_is_wireless ${device}; then
        cmd="${cmd} -Dwext"
 else
        cmd="${cmd} -Dwired"