add the possibility to use a script, idea by fulup
SVN-Revision: 1913
This commit is contained in:
parent
004a13dfbb
commit
720722f008
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# udhcpc script edited by Tim Riker <Tim@Rikers.org>
|
# 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
|
||||||
|
|
||||||
|
@ -32,6 +32,10 @@ case "$1" in
|
||||||
for i in $dns ; do
|
for i in $dns ; do
|
||||||
echo adding dns $i
|
echo adding dns $i
|
||||||
echo nameserver $i >> $RESOLV_CONF
|
echo nameserver $i >> $RESOLV_CONF
|
||||||
|
|
||||||
|
# user rules
|
||||||
|
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user
|
||||||
|
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue