Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
wlan0接口工作的问题,在启动时默认开启Master模式,当wlan0不用于网络搜索时,但我手动将其打开后通过键入: iwconfig wlan0 mode Managed,它开始工作是可以将默认启动模式更改为托管而不是主模式吗?
无线网卡的驱动程序是什么,您使用的是什么发行版?如何编写启动脚本以将默认模式设置为托管?为此,您应该首先创建脚本:
iwconfig wlan0 mode managed
您应该将上述代码写入文件并将其保存在以下位置:/opt/wifi.sh(文件的名称和路径可以是任何内容,但您应该确切地知道保存文件的位置)。
之后,您可以在终端中创建一个 Cron 作业,输入以下内容并回车:
crontab -e
然后在文件末尾写入以下行:
@reboot /opt/wifi.sh
同样,路径和文件名可以是任何东西。