mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-02 03:37:57 +00:00
17 lines
459 B
Ucode
17 lines
459 B
Ucode
bundle.wifi();
|
|
let paths = [
|
|
[ 'network.wireless', 'status' ],
|
|
[ 'network.device', 'status' ],
|
|
[ 'network.interface', 'dump' ],
|
|
[ 'log', 'read', { stream: false } ],
|
|
];
|
|
for (let path in paths)
|
|
bundle.ubus(path[0], path[1], path[2]);
|
|
for (let config in [ 'network', 'wireless', 'dhcp', 'firewall', 'system' ])
|
|
bundle.uci(config);
|
|
for (let cmd in [ "route", "ifconfig", "logread" ])
|
|
bundle.shell(cmd);
|
|
|
|
|
|
|