![]() ![]() | ![]() |
add set ip to script
1: #!/bin/sh 2: 3: IFACE="bridge0" 4: 5: BRIDGED="fxp0 rl0 wlan0 wlan1" 6: STP="fxp rl0" 7: 8: IP="" 9: 10: echo "Config Bridge interface $IFACE ..." 11: 12: ifconfig $IFACE create 13: 14: for i in $BRIDGED; do 15: ifconfig $IFACE addm $i 16: done 17: for i in $STP; do 18: ifconfig $IFACE stp $i 19: done 20: 21: ifconfig $IFACE inet $IP up