. /usr/lib/network/functions
+# Read network settings
+network_settings_read
+
action="${1}"
assert isset action
case "${action}" in
create)
# Create the configuration file for this zone.
- zone_config_read ${zone} || exit $?
+ zone_settings_read ${zone} || exit $?
wpa_supplicant_config_write ${zone} ${config_file} \
- --mode="${ENCRYPTION}" \
+ --mode="${ENCRYPTION_MODE}" \
--ssid="${SSID}" \
--key="${KEY}" \
|| exit $?