aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-06-28 23:07:29 +0000
committerMike Baker <mbm@openwrt.org>2007-06-28 23:07:29 +0000
commitf638c824f3ee0387eebb8c3f7c264b8b83e7d561 (patch)
tree2ff093f809fcb6b32948917989e08b26a64d2c81 /package
parent60c84025fb3b903f1c3e92c8251540559a98a52a (diff)
downloadmaster-187ad058-f638c824f3ee0387eebb8c3f7c264b8b83e7d561.tar.gz
master-187ad058-f638c824f3ee0387eebb8c3f7c264b8b83e7d561.tar.bz2
master-187ad058-f638c824f3ee0387eebb8c3f7c264b8b83e7d561.zip
fix broadcast address (#1611)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7766 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index c6d909fd0a..2c15b5e231 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -149,10 +149,9 @@ setup_interface() {
config_get dns "$config" dns
config_get bcast "$config" broadcast
- [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
+ [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}"
[ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
[ -z "$gateway" ] || $DEBUG route add default gw "$gateway"
- [ -z "$bcast" ] || $DEBUG ifconfig "$iface" broadcast "$bcast"
[ -z "$dns" ] || {
for ns in $dns; do
grep "$ns" /tmp/resolv.conf.auto 2>/dev/null >/dev/null || {