OpenWRT prplOS-- ubus命令配置参数
ubus(微总线架构)通过允许不同的守护进程和应用程序高效地交换消息和管理服务,促进了prplOS中的进程间通信(通过Ambiorix)。它可用于获取/设置各种Wi-Fi配置设置,如以下示例所示…
一 获取配置值
下面是一些如何通过ubus-cli获取值的示例。
ubus-cli "WiFi.?"
Print all Wi-Fi conffguration settings ubus-cli "WiFi.Radio.1.?" | grep -i bandwidth
Print all settings containing "bandwidth" from Radio 1 (2.4G). ubus-cli "WiFi.Radio.2.Channel"
Print current 5G radio channel ubus-cli "WiFi.Radio.3.?"
Print all 6G radio values ubus-cli "WiFi.Radio.1.SupportedStandards?"
Get all supported standards (2.4G) ubus-cli "WiFi.Radio.1.OperatingStandards?"
Get the current standard (2.4G) ubus-cli "WiFi.Radio.1.SupportedOperatingChannelBandwid