]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/header-port
Remove support for macvtap devices
[people/stevee/network.git] / src / header-port
index 2e166a118f60b91cf6cdb48c48063b05a4df0dfe..a26d8db237e05f99e088a52984a349d702a0017f 100644 (file)
@@ -26,7 +26,9 @@ INFO_SETTINGS="HOOK PORT_PARENTS PORT_CHILDREN"
 # The function is intended to create child ports and things
 # like that.
 function hook_hotplug() {
-       exit ${EXIT_OK}
+       # If the hook does not handle the hotplug event, it
+       # must return EXIT_NOT_HANDLED.
+       exit ${EXIT_NOT_HANDLED}
 }
 
 # This function gets called when a device is plugged in
@@ -47,7 +49,7 @@ function hook_info() {
        assert isset port
        shift
 
-       config_read "$(port_file ${port})"
+       settings_read "$(port_file ${port})"
 
        local key val
        for key in PORT_PARENTS PORT_CHILDREN; do