projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use busybox's "ifconfig broadcast +" if no broadcast is sent via dhcp
[openwrt.git]
/
openwrt
/
target
/
default
/
target_skeleton
/
usr
/
share
/
udhcpc
/
default.script
diff --git
a/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script
b/openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script
index
87be32d
..
996366e
100755
(executable)
--- a/
openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script
+++ b/
openwrt/target/default/target_skeleton/usr/share/udhcpc/default.script
@@
-13,8
+13,8
@@
case "$1" in
renew|bound)
ifconfig $interface $ip \
- ${broadcast:+broadcast $broadcast} \
- ${subnet:+netmask $subnet}
+ netmask ${subnet:-255.255.255.0} \
+ broadcast ${broadcast:-+}
if [ -n "$router" ] ; then
echo "deleting routers"
This page took
0.026733 seconds
and
4
git commands to generate.