启用/重启/关闭 无线接口
在 Openwrt下要 启用/重启/关闭 无线接口是使用命令 “wifi”来完成的。
启动无线接口:不带参数直接在命令行运行 wifi 命令;
如果修改了无线的配置,我们需要重新启动无线接口使配置生效,同样是不带参数直接在命令行下运行 wifi 命令;
如果需要关闭无线装置,加上“ down “参数使用 “wifi down”
大多数情况下新安装的 Openwrt 是默认关闭无线接口的。
重新生成配置
To rebuild the configuration file, e.g. after installing a new wireless driver, remove the existing wireless configuration (if any) and use the wifi config
command with stdout redirected to the /etc/config/wireless
file:
root@OpenWrt:~# rm -f /etc/config/wireless; wifi config > /etc/config/wireless