Permalink
Browse files

fix for IPv6 fix

  • Loading branch information...
1 parent d6fea06 commit 4663ec32b5ef6acb05e12007a5f38bb53ed32887 @danielrobbins danielrobbins committed Apr 8, 2012
Showing with 8 additions and 2 deletions.
  1. +2 −0 netif.d/bridge
  2. +6 −2 netif.d/interface
View
@@ -19,6 +19,8 @@ netif_pre_up() {
if [ -n "$(if_ipv4 $ipnm)" ]
then
bcast="broadcast $(get_option "$ipnm" broadcast +)"
+ else
+ bcast=""
fi
brctl setfd $interface 0
for ipnm in $ipaddr $ipaddrs; do
View
@@ -2,16 +2,20 @@
netif_pre_up() {
local count=-1
- local label=""
- local bcast=""
+ local label
+ local bcast
for ipnm in $ipaddr $ipaddrs; do
if [ $count -ge 0 ]
then
label=$interface:$count
+ else
+ label=""
fi
if [ -n "$(if_ipv4 $ipnm)" ]
then
bcast="broadcast $(get_option "$ipnm" broadcast +)"
+ else
+ bcast=""
fi
if [ -z "$label" ]
then

0 comments on commit 4663ec3

Please sign in to comment.