gluon-web-wifi-config, gluon-web-private-wifi: hide pages on devices without WLAN
Fixes: #2311
This commit is contained in:
parent
5f1f960753
commit
a40a89d906
@ -1,3 +1,8 @@
|
||||
local uci = require("simple-uci").cursor()
|
||||
local wireless = require 'gluon.wireless'
|
||||
|
||||
package 'gluon-web-private-wifi'
|
||||
|
||||
entry({"admin", "privatewifi"}, model("admin/privatewifi"), _("Private WLAN"), 30)
|
||||
if wireless.device_uses_wlan(uci) then
|
||||
entry({"admin", "privatewifi"}, model("admin/privatewifi"), _("Private WLAN"), 30)
|
||||
end
|
||||
|
@ -1,3 +1,8 @@
|
||||
local uci = require("simple-uci").cursor()
|
||||
local wireless = require 'gluon.wireless'
|
||||
|
||||
package 'gluon-web-wifi-config'
|
||||
|
||||
entry({"admin", "wifi-config"}, model("admin/wifi-config"), _("WLAN"), 20)
|
||||
if wireless.device_uses_wlan(uci) then
|
||||
entry({"admin", "wifi-config"}, model("admin/wifi-config"), _("WLAN"), 20)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user