summaryrefslogtreecommitdiffstats
path: root/package/busybox/udhcpc.script
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/udhcpc.script')
-rwxr-xr-xpackage/busybox/udhcpc.script6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/busybox/udhcpc.script b/package/busybox/udhcpc.script
index e23d1f1e0f..50c52e6fe3 100755
--- a/package/busybox/udhcpc.script
+++ b/package/busybox/udhcpc.script
@@ -64,4 +64,10 @@ case "$1" in
;;
esac
+HOOK_DIR="$0.d"
+for hook in "${HOOK_DIR}/"*; do
+ [ -f "${hook}" -a -x "${hook}" ] || continue
+ "${hook}" "${@}"
+done
+
exit 0
OpenPOWER on IntegriCloud