mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 21:32:59 +02:00
add the possibility to use a script, idea by fulup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1913 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cef1434f8e
commit
ba3ea46d52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user