diff options
author | Waldemar Brodkorb <wbx@openwrt.org> | 2005-09-13 10:59:54 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openwrt.org> | 2005-09-13 10:59:54 +0000 |
commit | a779e485a35f9b381a53c775ecfff1a6d2616b07 (patch) | |
tree | b6418619464885a4e233b239bfd369c441c8e69d | |
parent | 7aa31301c0d4ce1996e43276b7187bfeac7f820c (diff) | |
download | upstream-a779e485a35f9b381a53c775ecfff1a6d2616b07.tar.gz upstream-a779e485a35f9b381a53c775ecfff1a6d2616b07.tar.bz2 upstream-a779e485a35f9b381a53c775ecfff1a6d2616b07.zip |
add the possibility to use a script, idea by fulup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1913 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/base-files/default/usr/share/udhcpc/default.script | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/base-files/default/usr/share/udhcpc/default.script b/package/base-files/default/usr/share/udhcpc/default.script index 6c64aa3d4a..0c08985e71 100755 --- a/package/base-files/default/usr/share/udhcpc/default.script +++ b/package/base-files/default/usr/share/udhcpc/default.script @@ -1,6 +1,6 @@ #!/bin/sh # udhcpc script edited by Tim Riker <Tim@Rikers.org> -# (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 |