]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/header-port
Let hotplug handlers return a status code
[people/ms/network.git] / src / header-port
index cf4ef0de6113d2cf5c69f4d86cda82b579e5fa3d..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