#!/bin/sh
# udhcpc script edited by Tim Riker <Tim@Rikers.org>
#!/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
[ -z "$1" ] && echo "Error: should be run by udhcpc" && exit 1
for i in $dns ; do
echo adding dns $i
echo nameserver $i >> $RESOLV_CONF
for i in $dns ; do
echo adding dns $i
echo nameserver $i >> $RESOLV_CONF
+
+ # user rules
+ [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
+