aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-01-27 21:58:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-01-27 21:58:03 +0000
commit2ff5dc759afbb1e5792790f696234a201cea0e6f (patch)
treeb9ba6aed9a1b45b5fc7608d8533a926ca6528f49 /package/base-files
parent1668e52b8b137184f01ea0b1004638946183f239 (diff)
downloadupstream-2ff5dc759afbb1e5792790f696234a201cea0e6f.tar.gz
upstream-2ff5dc759afbb1e5792790f696234a201cea0e6f.tar.bz2
upstream-2ff5dc759afbb1e5792790f696234a201cea0e6f.zip
add broadcast setting for /etc/config/network interfaces
SVN-Revision: 6225
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh4
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