LINUX環境構築/vine4.0/WLI-USB-KS11G

Last-modified: 2008-05-01 (木) 02:11:35

ドライバ

http://www.geocities.co.jp/SiliconValley/3680/UsbWlanOnLinux.html
http://72.14.235.104/search?q=cache:4a4XMx1DnjUJ:a-axis.sblo.jp/article/1504615.html+WLI-USB-KS11G+linux&hl=ja&ct=clnk&cd=6&gl=jp&lr=lang_ja&client=firefox-a
http://209.85.175.104/search?q=cache:J8gxqhxp15MJ:www.sky.sannet.ne.jp/morostar/usbhost/WLI-USB-KB11.html+wlanctl-ng&hl=ja&ct=clnk&cd=3&gl=jp&client=firefox-a

wlanctl-ng

http://72.14.235.104/search?q=cache:fChgxu5wWDQJ:www.c.csce.kyushu-u.ac.jp/kb/wiki/index.php%3FLinux%25A4%25C7%25A4%25CE%25CC%25B5%25C0%25FELAN%25C0%25DC%25C2%25B3(ThinkPad%2520X23)+wlanctl-ng+authtype&hl=ja&ct=clnk&cd=2&gl=jp&client=firefox-a

作成したシェル

pukiwiki_cat /usr/local/bin/wlan-up.sh
#!/bin/sh
SSID=default
KEY=`echo -n '<13文字のキーなど>' | hexdump -e '13/1 "%02x:" "\n"' | cut -d ':' -f 1-13`
IPADDR=192.168.0.20
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
/sbin/wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
/sbin/wlanctl-ng wlan0 lnxreq_hostwep decrypt=true encrypt=true
/sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
/sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true
/sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
/sbin/wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=$KEY
/sbin/wlanctl-ng wlan0 lnxreq_autojoin ssid="$SSID" authtype="sharedkey"
/sbin/ifconfig wlan0 $IPADDR netmask $NETMASK up
/sbin/ip route add default via $GATEWAY dev wlan0