#start network at boot: rc-update add net.eth1 default
#to shut down the default Ethernet.我直接放到gnome桌面的启动命令里了 #重要,否则无线网卡正常启动了,但拔下网线后,还会通过原来的网卡上网,也就上不了网 ifconfig eth0 down
配置文件/etc/conf.d/net: #/etc/conf.d/net # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). config_eth0=( "192.168.1.28/24" ) routes_eth0=( "default via 192.168.1.1" ) #modules=( "wpa_supplicant" ) #wpa_supplicant_eth1="-Dmadwifi" modules=( "iwconfig" ) key_ShangHaiTide="[1] s:dachaogps key [1] enc open" preferred_aps=( "ShangHaiTide" )