Linux 下无线网卡启动脚本
不使用dhcp
#!/bin/sh
ifconfig wlan0 up
iwconfig wlan0 ESSID MYESSID
iwconfig key s:PASSWORD
ifconfig wlan0 192.168.0.xxx
route add gw 192.168.0.1
使用dhcp
#!/bin/sh
ifconfig wlan0 up
iwconfig wlan0 ESSID MYESSID
iwconfig key s:PASSWORD
dhcpcd wlan0
0 Comments.