IfconfigUpScript
Differences between revisions 1 and 4 (spanning 3 versions)
|
Size: 670
Comment:
|
Size: 715
Comment: Wiki clean. Added to CategoryLookMergeDelete.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| {{{ | |
| Line 14: | Line 14: |
| }}} | |
| Line 17: | Line 17: |
| {{{ | |
| Line 35: | Line 35: |
| }}} ---- CategoryLookMergeDelete |
For bringing up eth0:
sudo dhclient -r eth1 sleep 1 sudo ifconfig eth1 down sleep 1 sudo ifconfig eth0 up sleep 1 sudo dhclient eth0 sleep 2 sudo /etc/firestarter/firestarter.sh stop sudo /etc/firestarter/firestarter.sh start
For eth1:
sudo dhclient -r eth0 && sudo ifconfig eth0 down sudo ifconfig eth1 up sleep 1 sudo iwlist eth1 scan sleep 1 sudo iwconfig eth1 essid <essid here> sleep 1 sudo iwconfig eth1 ap <mac address of ap here> sleep 2 sudo iwconfig eth1 key <key here> sleep 2 sudo dhclient eth1 sleep 2 sudo /etc/firestarter/firestarter.sh stop sleep 1 sudo /etc/firestarter/firestarter.sh start
IfconfigUpScript (last edited 2012-01-21 09:46:30 by vpn-3091)