projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix error message
[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
e048687
..
74e7037
100755
(executable)
--- a/
package/base-files/default/usr/share/udhcpc/default.script
+++ b/
package/base-files/default/usr/share/udhcpc/default.script
@@
-37,13
+37,15
@@
case "$1" in
route add default gw $i dev $interface
done
fi
route add default gw $i dev $interface
done
fi
-
- echo -n > $RESOLV_CONF
- ${domain:+echo search $domain} >> $RESOLV_CONF
- for i in $dns ; do
- echo "adding dns $i"
- echo "nameserver $i" >> $RESOLV_CONF
- done
+
+ [ -n "$dns" ] && {
+ echo -n > $RESOLV_CONF
+ ${domain:+echo search $domain} >> $RESOLV_CONF
+ for i in $dns ; do
+ echo "adding dns $i"
+ echo "nameserver $i" >> $RESOLV_CONF
+ done
+ }
hotplug_event ifup
hotplug_event ifup
This page took
0.020946 seconds
and
4
git commands to generate.