diff options
author | Mike Baker <mbm@openwrt.org> | 2007-06-28 23:07:29 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2007-06-28 23:07:29 +0000 |
commit | 810b0bcb22ff82d0fa68157221c6621c486c0b9f (patch) | |
tree | 62000d77338c2322a4e124a28d7b341b0107997d /package/base-files/files | |
parent | 8f16983e89e3c0095de7bdd902e88cc5d5830979 (diff) | |
download | upstream-810b0bcb22ff82d0fa68157221c6621c486c0b9f.tar.gz upstream-810b0bcb22ff82d0fa68157221c6621c486c0b9f.tar.bz2 upstream-810b0bcb22ff82d0fa68157221c6621c486c0b9f.zip |
fix broadcast address (#1611)
SVN-Revision: 7766
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 3 |
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 || { |