mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 23:48:39 +01:00
mwan3-luci: update to 1.4-5
Maintainer: @arfett Compile tested: ramips, xiaomi mini, r49946 Run tested: ramips, xiaomi mini, r49946 Description: Bump to 1.4-5. Added new page for wifi configuration edit, similar how the current network configuration page works. Also enabled collecting of wifi configuration in troubleshooting page. Signed-of-by: Tomislav Požega pozega.tomislav@gmail.com
This commit is contained in:
@@ -51,6 +51,8 @@ function index()
|
||||
form("mwan/advanced_mwanconfig"))
|
||||
entry({"admin", "network", "mwan", "advanced", "networkconfig"},
|
||||
form("mwan/advanced_networkconfig"))
|
||||
entry({"admin", "network", "mwan", "advanced", "wirelessconfig"},
|
||||
form("mwan/advanced_wirelessconfig"))
|
||||
entry({"admin", "network", "mwan", "advanced", "diagnostics"},
|
||||
template("mwan/advanced_diagnostics"))
|
||||
entry({"admin", "network", "mwan", "advanced", "diagnostics_display"},
|
||||
@@ -270,6 +272,13 @@ function troubleshootingData()
|
||||
end
|
||||
mArray.netconfig = { networkConfig }
|
||||
|
||||
-- wireless config
|
||||
local wirelessConfig = ut.trim(sys.exec("cat /etc/config/wireless | sed -e 's/.*username.*/ USERNAME HIDDEN/' -e 's/.*password.*/ PASSWORD HIDDEN/' -e 's/.*key.*/ KEY HIDDEN/'"))
|
||||
if wirelessConfig == "" then
|
||||
wirelessConfig = "No data found"
|
||||
end
|
||||
mArray.wificonfig = { wirelessConfig }
|
||||
|
||||
-- ifconfig
|
||||
local ifconfig = ut.trim(sys.exec("ifconfig"))
|
||||
if ifconfig == "" then
|
||||
|
||||
Reference in New Issue
Block a user