From: Harald Hoyer Date: Tue, 15 Nov 2011 10:54:14 +0000 (+0100) Subject: 40network/ifup: add "brd +" to "ip addr add" X-Git-Tag: 014~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1b7efd57874e61d4ad3792fea56cf0979d9dc6b;p=thirdparty%2Fdracut.git 40network/ifup: add "brd +" to "ip addr add" Unlike "ifconfig", the "ip" command does not set a broadcast address unless explicitly requested. add "brd +" to make "ip" calculate the broadcast address on the fly --- diff --git a/modules.d/40network/ifup b/modules.d/40network/ifup index bab301466..a6b3a7da8 100755 --- a/modules.d/40network/ifup +++ b/modules.d/40network/ifup @@ -63,7 +63,7 @@ do_static() { # do not flush addr for ipv6 strstr $ip '*:*:*' || \ echo ip addr flush dev $netif - echo ip addr add $ip/$mask dev $netif + echo ip addr add $ip/$mask brd + dev $netif } > /tmp/net.$netif.up [ -n "$gw" ] && echo ip route add default via $gw dev $netif > /tmp/net.$netif.gw