-
Notifications
You must be signed in to change notification settings - Fork 3
Phenoxを無線APにつなげる方法
noriyukisakuda edited this page May 11, 2016
·
11 revisions
/root/setting/wlan-set-wli-uc.sh
のうちいくつかをコメントアウト
(SSIDとPASSはつなげる先に合わせて変更)
#!/bin/sh
ifconfig wlan1 up
sleep 1
wpa_supplicant -Dwext -iwlan1 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
wpa_cli -iwlan1 remove_network 0
wpa_cli -iwlan1 add_network 0
#wpad5e44faaf93adb217defc0afb07de32_cli -iwlan1 set_network 0 proto RSN
#wpa_cli -iwlan1 set_network 0 key_mgmt WPA-PSK
wpa_cli -iwlan1 set_network 0 ssid '"SSID"'
wpa_cli -iwlan1 set_network 0 psk '"PASS"'
#wpa_cli -iwlan1 set_network 0 pairwise CCMP
#wpa_cli -iwlan1 set_network 0 group CCMP
wpa_cli -iwlan1 enable_network 0
sleep 3
dhclient -v wlan1
# chmod +x wlan-set-wli-uc.sh
/etc/rc.local
にさっきのスクリプトのある場所を追加(exit 0
の上)