projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add the possibility to use a script, idea by fulup
[openwrt.git]
/
package
/
base-files
/
default
/
usr
/
share
/
udhcpc
/
default.script
diff --git
a/package/base-files/default/usr/share/udhcpc/default.script
b/package/base-files/default/usr/share/udhcpc/default.script
index
6c64aa3
..
0c08985
100755
(executable)
--- a/
package/base-files/default/usr/share/udhcpc/default.script
+++ b/
package/base-files/default/usr/share/udhcpc/default.script
@@
-1,6
+1,6
@@
#!/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
openw
rt)
+# (slightly modified for
OpenW
rt)
[ -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
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
+
done
;;
esac
done
;;
esac
This page took
0.025741 seconds
and
4
git commands to generate.