netifd: call /etc/udhcp.user from the netifd dhcp.script
authorFelix Fietkau <nbd@openwrt.org>
Sat, 15 Dec 2012 17:19:24 +0000 (17:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 15 Dec 2012 17:19:24 +0000 (17:19 +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>
SVN-Revision: 34704

package/network/config/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