netifd: read udhcpc user scripts from directory
[openwrt/staging/hauke.git] / package / network / config / netifd / files / lib / netifd / dhcp.script
index 6585b641d6bfc5aa6acf0dd7237d7a2fadbe5e66..e46005d84c634da2816740dc13ff685116903db6 100755 (executable)
@@ -112,5 +112,8 @@ esac
 
 # user rules
 [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user "$@"
+for f in /etc/udhcpc.user.d/*; do
+       [ -f "$f" ] && (. "$f" "$@")
+done
 
 exit 0