summaryrefslogtreecommitdiffstats
path: root/openwrt/package
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-13 10:59:54 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-13 10:59:54 +0000
commit1f8fdc6885832b68e9c5952a29be30bb219e3d4b (patch)
treee13808161ffb45ca1048697890f9f19fc0f4e90b /openwrt/package
parent162545e105cc5b5235ad142cb35ca816ac6d4617 (diff)
add the possibility to use a script, idea by fulup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1913 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package')
-rwxr-xr-xopenwrt/package/base-files/default/usr/share/udhcpc/default.script6
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 6c64aa3d4..0c08985e7 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