netifd: call /etc/udhcp.user from the netifd dhcp.script
authorFelix Fietkau <nbd@openwrt.org>
Sat, 15 Dec 2012 17:22:40 +0000 (17:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 15 Dec 2012 17:22:40 +0000 (17:22 +0000)
This was done previously when dhcp was handled by the network scripts.
So netifd should behave the same.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Backport of r34704

SVN-Revision: 34706

package/netifd/files/lib/netifd/dhcp.script

index 0097a96f88613723abd4a00c561a367bede22157..d26db0f4d181dfdedde4e683ed5c1852c4845b89 100755 (executable)
@@ -56,4 +56,7 @@ case "$1" in
        ;;
 esac
 
+# user rules
+[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
+
 exit 0