diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-09-13 10:59:54 +0000 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-09-13 10:59:54 +0000 |
commit | 720722f008b48f7cc8165219856f158ed2fcbafa (patch) | |
tree | e13808161ffb45ca1048697890f9f19fc0f4e90b /openwrt/package/base-files | |
parent | 004a13dfbbbd901bb203674c2266c4380a88e105 (diff) | |
download | mtk-20170518-720722f008b48f7cc8165219856f158ed2fcbafa.zip mtk-20170518-720722f008b48f7cc8165219856f158ed2fcbafa.tar.gz mtk-20170518-720722f008b48f7cc8165219856f158ed2fcbafa.tar.bz2 |
add the possibility to use a script, idea by fulup
SVN-Revision: 1913
Diffstat (limited to 'openwrt/package/base-files')
-rwxr-xr-x | openwrt/package/base-files/default/usr/share/udhcpc/default.script | 6 |
1 files changed, 5 insertions, 1 deletions
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 6c64aa3..0c08985 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 <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 |