netifd-dhcp: supply parameters to user-script
authorFelix Fietkau <nbd@openwrt.org>
Fri, 8 May 2015 10:44:19 +0000 (10:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 8 May 2015 10:44:19 +0000 (10:44 +0000)
hand over parameters to user-script e.g. $1=deconfig

Signed-off-by: Leon George <leon@georgemail.de>
Signed-off-by: Christian Mehlis <christian@m3hlis.de>
SVN-Revision: 45626

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

index 5b77f30..b3a61e2 100755 (executable)
@@ -97,6 +97,6 @@ case "$1" in
 esac
 
 # user rules
-[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
+[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user "$@"
 
 exit 0