mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
wwan/app: code alignment (#10850)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
This commit is contained in:
parent
1daa71c005
commit
b597493248
10
package/wwan/app/luci-app-gobinetmodem/Makefile
Executable file → Normal file
10
package/wwan/app/luci-app-gobinetmodem/Makefile
Executable file → Normal file
@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
LUCI_TITLE:=Modem Server
|
LUCI_TITLE:=Modem Server
|
||||||
LUCI_DEPENDS:=+luci-compat +kmod-usb-net +kmod-usb-net-cdc-ether +kmod-usb-acm \
|
LUCI_DEPENDS:=+luci-compat +kmod-usb-net +kmod-usb-net-cdc-ether +kmod-usb-acm \
|
||||||
+kmod-usb-net-qmi-wwan +kmod-usb-net-rndis +kmod-usb-serial-qualcomm \
|
+kmod-usb-net-qmi-wwan +kmod-usb-net-rndis +kmod-usb-serial-qualcomm \
|
||||||
+kmod-usb-net-sierrawireless +kmod-usb-ohci +kmod-usb-serial \
|
+kmod-usb-net-sierrawireless +kmod-usb-ohci +kmod-usb-serial \
|
||||||
+kmod-usb-serial-option \
|
+kmod-usb-serial-option \
|
||||||
+kmod-usb2 +kmod-usb3 \
|
+kmod-usb2 +kmod-usb3 \
|
||||||
+quectel-CM-5G +kmod-gobinet
|
+quectel-CM-5G +kmod-gobinet
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ function index()
|
|||||||
if not nixio.fs.access("/etc/config/gobinetmodem") then
|
if not nixio.fs.access("/etc/config/gobinetmodem") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
entry({"admin", "network", "gobinetmodem"}, cbi("gobinetmodem"), _("Gobinet Modem Server"), 80).dependent=false
|
entry({"admin", "network", "gobinetmodem"}, cbi("gobinetmodem"), _("Gobinet Modem Server"), 80).dependent = false
|
||||||
end
|
end
|
||||||
|
@ -1,39 +1,39 @@
|
|||||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||||
-- Licensed to the public under the Apache License 2.0.
|
-- Licensed to the public under the Apache License 2.0.
|
||||||
|
|
||||||
|
mp = Map("gobinetmodem")
|
||||||
|
mp.title = translate("gobinet Modem Server")
|
||||||
|
mp.description = translate("Modem Server For OpenWrt")
|
||||||
|
|
||||||
mp=Map("gobinetmodem",translate("gobinet Modem Server"))
|
s = mp:section(TypedSection, "service", "Base Setting")
|
||||||
mp.description=translate("Modem Server For OpenWrt")
|
|
||||||
|
|
||||||
s=mp:section(TypedSection,"service", "Base Setting")
|
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
|
|
||||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||||
enabled.default=0
|
enabled.default = 0
|
||||||
enabled.rmempty=false
|
enabled.rmempty = false
|
||||||
|
|
||||||
apn=s:option(Value,"apn",translate("APN"))
|
apn = s:option(Value, "apn", translate("APN"))
|
||||||
apn.rmempty=true
|
apn.rmempty = true
|
||||||
|
|
||||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||||
pincode.rmempty=true
|
pincode.rmempty = true
|
||||||
|
|
||||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||||
username.rmempty=true
|
username.rmempty = true
|
||||||
|
|
||||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||||
password.rmempty=true
|
password.rmempty = true
|
||||||
auth=s:option(Value,"auth",translate("Authentication Type"))
|
|
||||||
password.rmempty=true
|
|
||||||
auth:value("",translate("-- Please choose --"))
|
|
||||||
auth:value("both","PAP/CHAP (both)")
|
|
||||||
auth:value("pap","PAP")
|
|
||||||
auth:value("chap","CHAP")
|
|
||||||
auth:value("none","NONE")
|
|
||||||
|
|
||||||
tool=s:option(Value,"tool",translate("Tools"))
|
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||||
tool:value("quectel-CM","quectel-CM")
|
auth.rmempty = true
|
||||||
tool.rmempty=true
|
auth:value("", translate("-- Please choose --"))
|
||||||
|
auth:value("both", "PAP/CHAP (both)")
|
||||||
|
auth:value("pap", "PAP")
|
||||||
|
auth:value("chap", "CHAP")
|
||||||
|
auth:value("none", "NONE")
|
||||||
|
|
||||||
|
tool = s:option(Value, "tool", translate("Tools"))
|
||||||
|
tool:value("quectel-CM", "quectel-CM")
|
||||||
|
tool.rmempty = true
|
||||||
|
|
||||||
return mp
|
return mp
|
||||||
|
|
||||||
|
@ -9,4 +9,3 @@ EOF
|
|||||||
|
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
0
package/wwan/app/luci-app-pcimodem/Makefile
Executable file → Normal file
0
package/wwan/app/luci-app-pcimodem/Makefile
Executable file → Normal file
@ -4,6 +4,6 @@ function index()
|
|||||||
if not nixio.fs.access("/etc/config/pcimodem") then
|
if not nixio.fs.access("/etc/config/pcimodem") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
entry({"admin", "network", "pcimodem"}, cbi("pcimodem"), _("PCI Modem Server"), 80).dependent=false
|
entry({"admin", "network", "pcimodem"}, cbi("pcimodem"), _("PCI Modem Server"), 80).dependent = false
|
||||||
end
|
end
|
||||||
|
@ -1,39 +1,39 @@
|
|||||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||||
-- Licensed to the public under the Apache License 2.0.
|
-- Licensed to the public under the Apache License 2.0.
|
||||||
|
|
||||||
|
mp = Map("pcimodem")
|
||||||
|
mp.title = translate("PCI Modem Server")
|
||||||
|
mp.description = translate("Modem Server For OpenWrt")
|
||||||
|
|
||||||
mp=Map("pcimodem",translate("PCI Modem Server"))
|
s = mp:section(TypedSection, "service", "Base Setting")
|
||||||
mp.description=translate("Modem Server For OpenWrt")
|
|
||||||
|
|
||||||
s=mp:section(TypedSection,"service", "Base Setting")
|
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
|
|
||||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||||
enabled.default=0
|
enabled.default = 0
|
||||||
enabled.rmempty=false
|
enabled.rmempty = false
|
||||||
|
|
||||||
apn=s:option(Value,"apn",translate("APN"))
|
apn = s:option(Value, "apn", translate("APN"))
|
||||||
apn.rmempty=true
|
apn.rmempty = true
|
||||||
|
|
||||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||||
pincode.rmempty=true
|
pincode.rmempty = true
|
||||||
|
|
||||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||||
username.rmempty=true
|
username.rmempty = true
|
||||||
|
|
||||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||||
password.rmempty=true
|
password.rmempty = true
|
||||||
auth=s:option(Value,"auth",translate("Authentication Type"))
|
|
||||||
password.rmempty=true
|
|
||||||
auth:value("",translate("-- Please choose --"))
|
|
||||||
auth:value("both","PAP/CHAP (both)")
|
|
||||||
auth:value("pap","PAP")
|
|
||||||
auth:value("chap","CHAP")
|
|
||||||
auth:value("none","NONE")
|
|
||||||
|
|
||||||
tool=s:option(Value,"tool",translate("Tools"))
|
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||||
tool:value("quectel-CM","quectel-CM")
|
auth.rmempty = true
|
||||||
tool.rmempty=true
|
auth:value("", translate("-- Please choose --"))
|
||||||
|
auth:value("both", "PAP/CHAP (both)")
|
||||||
|
auth:value("pap", "PAP")
|
||||||
|
auth:value("chap", "CHAP")
|
||||||
|
auth:value("none", "NONE")
|
||||||
|
|
||||||
|
tool = s:option(Value, "tool", translate("Tools"))
|
||||||
|
tool:value("quectel-CM", "quectel-CM")
|
||||||
|
tool.rmempty = true
|
||||||
|
|
||||||
return mp
|
return mp
|
||||||
|
|
||||||
|
@ -9,4 +9,3 @@ EOF
|
|||||||
|
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
0
package/wwan/app/luci-app-spdmodem/Makefile
Executable file → Normal file
0
package/wwan/app/luci-app-spdmodem/Makefile
Executable file → Normal file
@ -4,6 +4,6 @@ function index()
|
|||||||
if not nixio.fs.access("/etc/config/spdmodem") then
|
if not nixio.fs.access("/etc/config/spdmodem") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
entry({"admin", "network", "spdmodem"}, cbi("spdmodem"), _("SPD Modem Server"), 80).dependent=false
|
entry({"admin", "network", "spdmodem"}, cbi("spdmodem"), _("SPD Modem Server"), 80).dependent = false
|
||||||
end
|
end
|
||||||
|
@ -1,39 +1,39 @@
|
|||||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||||
-- Licensed to the public under the Apache License 2.0.
|
-- Licensed to the public under the Apache License 2.0.
|
||||||
|
|
||||||
|
mp = Map("spdmodem")
|
||||||
|
mp.title = translate("SPD Modem Server")
|
||||||
|
mp.description = translate("Modem Server For OpenWrt")
|
||||||
|
|
||||||
mp=Map("spdmodem",translate("SPD Modem Server"))
|
s = mp:section(TypedSection, "service", "Base Setting")
|
||||||
mp.description=translate("Modem Server For OpenWrt")
|
|
||||||
|
|
||||||
s=mp:section(TypedSection,"service", "Base Setting")
|
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
|
|
||||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||||
enabled.default=0
|
enabled.default = 0
|
||||||
enabled.rmempty=false
|
enabled.rmempty = false
|
||||||
|
|
||||||
apn=s:option(Value,"apn",translate("APN"))
|
apn = s:option(Value, "apn", translate("APN"))
|
||||||
apn.rmempty=true
|
apn.rmempty = true
|
||||||
|
|
||||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||||
pincode.rmempty=true
|
pincode.rmempty = true
|
||||||
|
|
||||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||||
username.rmempty=true
|
username.rmempty = true
|
||||||
|
|
||||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||||
password.rmempty=true
|
password.rmempty = true
|
||||||
auth=s:option(Value,"auth",translate("Authentication Type"))
|
|
||||||
password.rmempty=true
|
|
||||||
auth:value("",translate("-- Please choose --"))
|
|
||||||
auth:value("both","PAP/CHAP (both)")
|
|
||||||
auth:value("pap","PAP")
|
|
||||||
auth:value("chap","CHAP")
|
|
||||||
auth:value("none","NONE")
|
|
||||||
|
|
||||||
tool=s:option(Value,"tool",translate("Tools"))
|
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||||
tool:value("quectel-CM","quectel-CM")
|
auth.rmempty = true
|
||||||
tool.rmempty=true
|
auth:value("", translate("-- Please choose --"))
|
||||||
|
auth:value("both", "PAP/CHAP (both)")
|
||||||
|
auth:value("pap", "PAP")
|
||||||
|
auth:value("chap", "CHAP")
|
||||||
|
auth:value("none", "NONE")
|
||||||
|
|
||||||
|
tool = s:option(Value, "tool", translate("Tools"))
|
||||||
|
tool:value("quectel-CM", "quectel-CM")
|
||||||
|
tool.rmempty = true
|
||||||
|
|
||||||
return mp
|
return mp
|
||||||
|
|
||||||
|
@ -9,4 +9,3 @@ EOF
|
|||||||
|
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
10
package/wwan/app/luci-app-usbmodem/Makefile
Executable file → Normal file
10
package/wwan/app/luci-app-usbmodem/Makefile
Executable file → Normal file
@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
LUCI_TITLE:=Modem Server
|
LUCI_TITLE:=Modem Server
|
||||||
LUCI_DEPENDS:=+luci-compat +kmod-usb-net +kmod-usb-net-cdc-ether +kmod-usb-acm \
|
LUCI_DEPENDS:=+luci-compat +kmod-usb-net +kmod-usb-net-cdc-ether +kmod-usb-acm \
|
||||||
+kmod-usb-net-qmi-wwan +kmod-usb-net-rndis +kmod-usb-serial-qualcomm \
|
+kmod-usb-net-qmi-wwan +kmod-usb-net-rndis +kmod-usb-serial-qualcomm \
|
||||||
+kmod-usb-net-sierrawireless +kmod-usb-ohci +kmod-usb-serial \
|
+kmod-usb-net-sierrawireless +kmod-usb-ohci +kmod-usb-serial \
|
||||||
+kmod-usb-serial-option +kmod-usb-wdm \
|
+kmod-usb-serial-option +kmod-usb-wdm \
|
||||||
+kmod-usb2 +kmod-usb3 \
|
+kmod-usb2 +kmod-usb3 \
|
||||||
+quectel-CM-5G +kmod-qmi_wwan_q +kmod-usb-net-cdc-mbim
|
+quectel-CM-5G +kmod-qmi_wwan_q +kmod-usb-net-cdc-mbim
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ function index()
|
|||||||
if not nixio.fs.access("/etc/config/usbmodem") then
|
if not nixio.fs.access("/etc/config/usbmodem") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
entry({"admin", "network", "usbmodem"}, cbi("usbmodem"), _("USB Modem Server"), 80).dependent=false
|
entry({"admin", "network", "usbmodem"}, cbi("usbmodem"), _("USB Modem Server"), 80).dependent = false
|
||||||
end
|
end
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||||
-- Licensed to the public under the Apache License 2.0.
|
-- Licensed to the public under the Apache License 2.0.
|
||||||
|
|
||||||
|
mp = Map("usbmodem")
|
||||||
|
mp.title = translate("USB Modem Server")
|
||||||
|
mp.description = translate("Modem Server For OpenWrt")
|
||||||
|
|
||||||
mp=Map("usbmodem",translate("USB Modem Server"))
|
s = mp:section(TypedSection, "service", "Base Setting")
|
||||||
mp.description=translate("Modem Server For OpenWrt")
|
|
||||||
|
|
||||||
s=mp:section(TypedSection,"service", "Base Setting")
|
|
||||||
s.anonymous = true
|
s.anonymous = true
|
||||||
|
|
||||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||||
enabled.default=0
|
enabled.default = 0
|
||||||
enabled.rmempty=false
|
enabled.rmempty = false
|
||||||
|
|
||||||
device=s:option(Value, "device", translate("Modem device"))
|
device = s:option(Value, "device", translate("Modem device"))
|
||||||
device.rmempty = false
|
device.rmempty = false
|
||||||
|
|
||||||
local device_suggestions = nixio.fs.glob("/dev/cdc-wdm*")
|
local device_suggestions = nixio.fs.glob("/dev/cdc-wdm*")
|
||||||
@ -24,28 +24,28 @@ if device_suggestions then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
apn=s:option(Value,"apn",translate("APN"))
|
apn = s:option(Value, "apn", translate("APN"))
|
||||||
apn.rmempty=true
|
apn.rmempty = true
|
||||||
|
|
||||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||||
pincode.rmempty=true
|
pincode.rmempty = true
|
||||||
|
|
||||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||||
username.rmempty=true
|
username.rmempty = true
|
||||||
|
|
||||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||||
password.rmempty=true
|
password.rmempty = true
|
||||||
auth=s:option(Value,"auth",translate("Authentication Type"))
|
|
||||||
password.rmempty=true
|
|
||||||
auth:value("",translate("-- Please choose --"))
|
|
||||||
auth:value("both","PAP/CHAP (both)")
|
|
||||||
auth:value("pap","PAP")
|
|
||||||
auth:value("chap","CHAP")
|
|
||||||
auth:value("none","NONE")
|
|
||||||
|
|
||||||
tool=s:option(Value,"tool",translate("Tools"))
|
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||||
tool:value("quectel-CM","quectel-CM")
|
auth.rmempty = true
|
||||||
tool.rmempty=true
|
auth:value("", translate("-- Please choose --"))
|
||||||
|
auth:value("both", "PAP/CHAP (both)")
|
||||||
|
auth:value("pap", "PAP")
|
||||||
|
auth:value("chap", "CHAP")
|
||||||
|
auth:value("none", "NONE")
|
||||||
|
|
||||||
|
tool = s:option(Value, "tool", translate("Tools"))
|
||||||
|
tool:value("quectel-CM", "quectel-CM")
|
||||||
|
tool.rmempty = true
|
||||||
|
|
||||||
return mp
|
return mp
|
||||||
|
|
||||||
|
@ -9,4 +9,3 @@ EOF
|
|||||||
|
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
0
package/wwan/app/luci-proto-3x/Makefile
Executable file → Normal file
0
package/wwan/app/luci-proto-3x/Makefile
Executable file → Normal file
0
package/wwan/app/luci-proto-3x/files/usr/lib/lua/luci/model/cbi/admin_network/proto_3x.lua
Executable file → Normal file
0
package/wwan/app/luci-proto-3x/files/usr/lib/lua/luci/model/cbi/admin_network/proto_3x.lua
Executable file → Normal file
0
package/wwan/app/luci-proto-mbim/Makefile
Executable file → Normal file
0
package/wwan/app/luci-proto-mbim/Makefile
Executable file → Normal file
0
package/wwan/app/luci-proto-mbim/files/usr/lib/lua/luci/model/cbi/admin_network/proto_mbim.lua
Executable file → Normal file
0
package/wwan/app/luci-proto-mbim/files/usr/lib/lua/luci/model/cbi/admin_network/proto_mbim.lua
Executable file → Normal file
0
package/wwan/app/luci-proto-mbim/files/usr/lib/lua/luci/model/network/proto_mbim.lua
Executable file → Normal file
0
package/wwan/app/luci-proto-mbim/files/usr/lib/lua/luci/model/network/proto_mbim.lua
Executable file → Normal file
Loading…
Reference in New Issue
Block a user