[OpenWrt-Devel] [PATCH] netifd-dhcp: supply parameters to user-script
Christian Mehlis
christian at m3hlis.de
Mon Apr 27 11:05:00 EDT 2015
hand over parameters to user-script e.g. $1=deconfig
Signed-off-by: Leon George <leon at georgemail.de>
Signed-off-by: Christian Mehlis <christian at m3hlis.de>
---
package/network/config/netifd/files/lib/netifd/dhcp.script | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script
index fb9f95a..94ae206 100755
--- a/package/network/config/netifd/files/lib/netifd/dhcp.script
+++ b/package/network/config/netifd/files/lib/netifd/dhcp.script
@@ -93,6 +93,6 @@ case "$1" in
esac
# user rules
-[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
+[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user "$@"
exit 0
--
2.3.4.263.gf53fc38
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list