分页: 1 / 1

iwlist的问题。百思不得其解

发表于 : 2014-02-26 18:09
1314258a
是arm环境下的没显示器的一个设备。

首先我编辑了/etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
wpa-ssid "ubuntu"
wpa-psk "ubuntukey"

每次开机,都能自动连接到wifi。

这不,经常公司和家里两个Wi-Fi,每次都设一次吗?所以决定用
mapping wlan0
script /root/wifi.sh

但不知道为什么运行iwlist wlan0 scan提示
wlan0 Interface doesn't support scanning.

ifconfig是看到wlan0的,而这个wlan0也能连上wifi。为什么不能用scan呢?

Re: iwlist的问题。百思不得其解

发表于 : 2014-02-26 18:29
poloshiao
試試
sudo iwlist wlan0 scan

Re: iwlist的问题。百思不得其解

发表于 : 2014-02-26 20:51
1314258a
poloshiao 写了:試試
sudo iwlist wlan0 scan
已经是sudo。

Re: iwlist的问题。百思不得其解

发表于 : 2014-02-26 21:49
poloshiao

Re: iwlist的问题。百思不得其解

发表于 : 2014-02-27 9:11
eexpress
/root/wifi.sh
啥内容

Re: iwlist的问题。百思不得其解

发表于 : 2014-02-27 15:26
1314258a
eexpress 写了:/root/wifi.sh
啥内容
echo "office"

只所以用这个原因是,不能用iwlist来判断现在环境究竟是office还是home。

/root/wifi.sh本来的作用是用来判断现在是搜索到家里的wifi还是公司的wifi的。

归根结底是iwlist用不了。