?? sta.wlan
字號(hào):
#! /bin/sh# VIA Networking Wireless LAN USB device network setup script# ###################### Wireless Settings ####################################### Assigned available device interface such as eth0 or eth1.DEVICE=eth0# wireless settingsDESIRED_SSID="TestAP" # ["xxx"] Service Set ID for used(Max 32)BSSTYPE=infra # [adhoc|infra] adhoc or infrastructure modeCHANNEL=6 # [1..14] default startup channelPSMODE=no # [yes|no] to enable power savingAUTHTYPE=open # [open|share] authentication mode# WEP function enable/disableWEP_ENABLE=no # [yes|no] to enable WEP WEP_DEFKEY=0 # [0..3] Key Index for use# WEP HEX key settings, only WEP_ENABLE=yes, key will take effect. # [no|"xx:xx:xx:xx:xx"]: no key or 40bit(10-hex)/104(26-hex)wep hex keyWEP_KEY0="11:22:33:44:55:66:77:88:99:aa:bb:cc:dd" # 104 bit wep keyWEP_KEY1=noWEP_KEY2=noWEP_KEY3=no###################### Settings End ############################################# Don't modify the following setup script ! # The following script use "Wireless Settings" to configure wirless network.####################### Script Begin ###########################################cnt=`/sbin/lsmod | grep -c vntwusb`if [ "$cnt" = "0" ]; then echo "insmod 'vntwusb'" /sbin/insmod vntwusb.ofi# Open device/sbin/ifconfig $DEVICE 192.168.100.39#/sbin/ifconfig $DEVICE upif [ "$DESIRED_SSID" = "" ] ; then DESIRED_SSID="any"fi# Set your wep keys, if presentif [ "$WEP_ENABLE" = "yes" ] ; then/sbin/wetctl $DEVICE privacy \ $WEP_DEFKEY \ key0 $WEP_KEY0 \ key1 $WEP_KEY1 \ key2 $WEP_KEY2 \ key3 $WEP_KEY3else /sbin/wetctl $DEVICE privacy offfi # Scan for existing networksecho "Scanning channels" /sbin/wetctl $DEVICE scan# Join for existing networks/sbin/wetctl $DEVICE join \ $BSSTYPE \ $DESIRED_SSID \ $CHANNEL \ $PSMODE \ $AUTHTYPE echo "Joining with " \ "Desired SSID=$DESIRED_SSID," \ "Network Type=$BSSTYPE" exit 0###################### Script End #############################################
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -