From: Waldemar Brodkorb Date: Tue, 13 Sep 2005 10:59:54 +0000 (+0000) Subject: add the possibility to use a script, idea by fulup X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9f9c33af40a03cec2bf9e3910c74c7f1fd5851ee;p=openwrt%2Fsvn-archive%2Farchive.git add the possibility to use a script, idea by fulup SVN-Revision: 1913 --- diff --git a/openwrt/package/base-files/default/usr/share/udhcpc/default.script b/openwrt/package/base-files/default/usr/share/udhcpc/default.script index 6c64aa3d4a..0c08985e71 100755 --- a/openwrt/package/base-files/default/usr/share/udhcpc/default.script +++ b/openwrt/package/base-files/default/usr/share/udhcpc/default.script @@ -1,6 +1,6 @@ #!/bin/sh # udhcpc script edited by Tim Riker -# (slightly modified for openwrt) +# (slightly modified for OpenWrt) [ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1 @@ -32,6 +32,10 @@ case "$1" in for i in $dns ; do echo adding dns $i echo nameserver $i >> $RESOLV_CONF + + # user rules + [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user + done ;; esac