]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/zones/wireless
Fix hook settings writing and checking
[people/stevee/network.git] / src / hooks / zones / wireless
index f4b853a4b354feb29fa8b95f0bfdd6b787669d63..52a3da3080cf7c5c52b2867a3f51d81dcc50164e 100644 (file)
@@ -31,7 +31,7 @@ SSID=
 KEY=
 ENCRYPTION_MODE=
 
-function hook_check() {
+function hook_check_settings() {
        assert isset SSID
 
        if isset ADDRESS; then
@@ -81,7 +81,7 @@ function hook_up() {
        assert isset zone
 
        # Read zone configuration.
-       zone_config_read ${zone}
+       zone_settings_read "${zone}"
 
        if ! device_exists ${zone}; then
                #  Create the wireless interface.