iwlist的问题。百思不得其解

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
1314258a
帖子: 5
注册时间: 2014-02-19 23:06
系统: mac os

iwlist的问题。百思不得其解

#1

帖子 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呢?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#2

帖子 poloshiao »

試試
sudo iwlist wlan0 scan
1314258a
帖子: 5
注册时间: 2014-02-19 23:06
系统: mac os

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

#3

帖子 1314258a »

poloshiao 写了:試試
sudo iwlist wlan0 scan
已经是sudo。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

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

#5

帖子 eexpress »

/root/wifi.sh
啥内容
● 鸣学
1314258a
帖子: 5
注册时间: 2014-02-19 23:06
系统: mac os

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

#6

帖子 1314258a »

eexpress 写了:/root/wifi.sh
啥内容
echo "office"

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

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

归根结底是iwlist用不了。
回复