]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/header-port
wireless-ap: Allow to disable DFS in configuration
[people/ms/network.git] / src / header-port
index 158a7cb7eb9b018b590b69dbbdbfc1b17c45fb0f..ce1c1923945adefd8879303f560944d8d88cddee 100644 (file)
@@ -21,6 +21,8 @@
 
 INFO_SETTINGS="HOOK PORT_PARENTS PORT_CHILDREN"
 
+HOOK_PORT_PATTERN="${PORT_PATTERN}"
+
 # This function is called after a device has been plugged
 # into the system and got its correct name.
 # The function is intended to create child ports and things
@@ -41,6 +43,7 @@ hook_hotplug_rename() {
 }
 
 hook_default_new() {
+       local ${HOOK_SETTINGS}
        if ! hook_parse_cmdline "$@"; then
                return ${EXIT_ERROR}
        fi
@@ -81,6 +84,9 @@ hook_default_edit() {
                return ${EXIT_ERROR}
        fi
 
+       # Apply settings
+       port_restart "${port}"
+
        return ${EXIT_OK}
 }