diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-09-13 10:59:54 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-09-13 10:59:54 +0000 |
commit | ba3ea46d528d1655a8dd1739b7de0eac65a29ec5 (patch) | |
tree | b6418619464885a4e233b239bfd369c441c8e69d /package/base-files/default | |
parent | cef1434f8e83bc4b3b1814e524d70d2e944322ef (diff) |
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
Diffstat (limited to 'package/base-files/default')
-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 |