|
|
用如下的命令行已经可以和Access Point联接了。但是不知道如何将其设置到/etc/conf.d/net
apple ~ # iwconfig wlan0 mode managed
apple ~ # iwconfig wlan0 essid home
apple ~ # iwconfig wlan0 channel 1
apple ~ # iwconfig wlan0 enc s:xxxxx open
apple ~ # ifconfig wlan0 192.168.1.108 netmask 255.255.255.0
apple ~ # route add default gw 192.168.1.10
下面是我的/etc/conf.d/net,但是就不能联上AP
modules=( "iwconfig" )
essid_wlan0=( "home" )
mode_wlan0="managed"
key_home="s:xxxxx enc open"
modules=( "ifconfig" )
config_wlan0=( "192.168.1.108/24" )
routes_wlan0=( "default gw 192.168.1.10" )
先谢谢了。 |
|