diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-01-27 21:58:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-01-27 21:58:03 +0000 |
commit | 18db71bc7a47987bf29c7f25b5aac31a7ea883cd (patch) | |
tree | 2866eb7da99f08373eef1bd44b29b3427cefa334 | |
parent | bf310af2c1c02d0ad188a89c947174407e870280 (diff) | |
download | upstream-18db71bc7a47987bf29c7f25b5aac31a7ea883cd.tar.gz upstream-18db71bc7a47987bf29c7f25b5aac31a7ea883cd.tar.bz2 upstream-18db71bc7a47987bf29c7f25b5aac31a7ea883cd.zip |
add broadcast setting for /etc/config/network interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6225 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index e68223e277..ffe637bbf0 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -124,10 +124,12 @@ setup_interface() { config_get ip6addr "$config" ip6addr config_get gateway "$config" gateway config_get dns "$config" dns + config_get bcast "$config" broadcast [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" [ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" inet6 add "$ip6addr" - [ -z "$gateway" ] || route add default gw "$gateway" + [ -z "$gateway" ] || $DEBUG route add default gw "$gateway" + [ -z "$bcast" ] || $DEBUG ifconfig "$iface" broadcast "$bcast" [ -z "$dns" -o -f /tmp/resolv.conf.auto ] || { for ns in $dns; do echo "nameserver $ns" >> /tmp/resolv.conf.auto |