1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-20 02:44:59 +02:00

fix broadcast address (#1611)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7766 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm 2007-06-28 23:07:29 +00:00
parent 47bdee9db5
commit a9d4da075e

View File

@ -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 || {