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 5b77f306f762fe7ff4e8979638f9dafd3d4ec531..b3a61e27509061f9d6aa849deb45130f88a12161 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