| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # The following expression selects the first bridge listed by 'brctl show'. | 3 # The following expression selects the first bridge listed by 'brctl show'. |
| 4 # Modify it to suit your needs. | 4 # Modify it to suit your needs. |
| 5 switch=$(/usr/sbin/brctl show | awk 'NR==2 { print $1 }') | 5 switch=$(/usr/sbin/brctl show | awk 'NR==2 { print $1 }') |
| 6 | 6 |
| 7 /bin/echo 1 > /proc/sys/net/ipv6/conf/${switch}/disable_ipv6 |
| 7 /sbin/ifconfig $1 0.0.0.0 up | 8 /sbin/ifconfig $1 0.0.0.0 up |
| 8 /usr/sbin/brctl addif ${switch} $1 | 9 /usr/sbin/brctl addif ${switch} $1 |
| 9 /usr/sbin/brctl setfd ${switch} 0 | 10 /usr/sbin/brctl setfd ${switch} 0 |
| 10 /usr/sbin/brctl stp ${switch} off | 11 /usr/sbin/brctl stp ${switch} off |
| OLD | NEW |