add the possibility to use a script, idea by fulup
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Tue, 13 Sep 2005 10:59:54 +0000 (10:59 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Tue, 13 Sep 2005 10:59:54 +0000 (10:59 +0000)
SVN-Revision: 1913

openwrt/package/base-files/default/usr/share/udhcpc/default.script

index 6c64aa3d4ae6e3eb82380e407bde62120f634a5e..0c08985e717b4ca79db3a8bbd6e885e1102942a1 100755 (executable)
@@ -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