mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +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_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-sierrawireless +kmod-usb-ohci +kmod-usb-serial \
|
||||
+kmod-usb-serial-option \
|
||||
+kmod-usb2 +kmod-usb3 \
|
||||
+quectel-CM-5G +kmod-gobinet
|
||||
+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-serial-option \
|
||||
+kmod-usb2 +kmod-usb3 \
|
||||
+quectel-CM-5G +kmod-gobinet
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
|
@ -5,5 +5,5 @@ function index()
|
||||
return
|
||||
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
|
||||
|
@ -1,39 +1,39 @@
|
||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||
-- 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"))
|
||||
mp.description=translate("Modem Server For OpenWrt")
|
||||
|
||||
s=mp:section(TypedSection,"service", "Base Setting")
|
||||
s = mp:section(TypedSection, "service", "Base Setting")
|
||||
s.anonymous = true
|
||||
|
||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
||||
enabled.default=0
|
||||
enabled.rmempty=false
|
||||
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||
enabled.default = 0
|
||||
enabled.rmempty = false
|
||||
|
||||
apn=s:option(Value,"apn",translate("APN"))
|
||||
apn.rmempty=true
|
||||
apn = s:option(Value, "apn", translate("APN"))
|
||||
apn.rmempty = true
|
||||
|
||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
||||
pincode.rmempty=true
|
||||
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||
pincode.rmempty = true
|
||||
|
||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
||||
username.rmempty=true
|
||||
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||
username.rmempty = true
|
||||
|
||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
||||
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")
|
||||
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||
password.rmempty = true
|
||||
|
||||
tool=s:option(Value,"tool",translate("Tools"))
|
||||
tool:value("quectel-CM","quectel-CM")
|
||||
tool.rmempty=true
|
||||
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||
auth.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
|
||||
|
||||
|
@ -9,4 +9,3 @@ EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
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
@ -5,5 +5,5 @@ function index()
|
||||
return
|
||||
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
|
||||
|
@ -1,39 +1,39 @@
|
||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||
-- 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"))
|
||||
mp.description=translate("Modem Server For OpenWrt")
|
||||
|
||||
s=mp:section(TypedSection,"service", "Base Setting")
|
||||
s = mp:section(TypedSection, "service", "Base Setting")
|
||||
s.anonymous = true
|
||||
|
||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
||||
enabled.default=0
|
||||
enabled.rmempty=false
|
||||
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||
enabled.default = 0
|
||||
enabled.rmempty = false
|
||||
|
||||
apn=s:option(Value,"apn",translate("APN"))
|
||||
apn.rmempty=true
|
||||
apn = s:option(Value, "apn", translate("APN"))
|
||||
apn.rmempty = true
|
||||
|
||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
||||
pincode.rmempty=true
|
||||
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||
pincode.rmempty = true
|
||||
|
||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
||||
username.rmempty=true
|
||||
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||
username.rmempty = true
|
||||
|
||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
||||
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")
|
||||
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||
password.rmempty = true
|
||||
|
||||
tool=s:option(Value,"tool",translate("Tools"))
|
||||
tool:value("quectel-CM","quectel-CM")
|
||||
tool.rmempty=true
|
||||
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||
auth.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
|
||||
|
||||
|
@ -9,4 +9,3 @@ EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
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
@ -5,5 +5,5 @@ function index()
|
||||
return
|
||||
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
|
||||
|
@ -1,39 +1,39 @@
|
||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||
-- 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"))
|
||||
mp.description=translate("Modem Server For OpenWrt")
|
||||
|
||||
s=mp:section(TypedSection,"service", "Base Setting")
|
||||
s = mp:section(TypedSection, "service", "Base Setting")
|
||||
s.anonymous = true
|
||||
|
||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
||||
enabled.default=0
|
||||
enabled.rmempty=false
|
||||
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||
enabled.default = 0
|
||||
enabled.rmempty = false
|
||||
|
||||
apn=s:option(Value,"apn",translate("APN"))
|
||||
apn.rmempty=true
|
||||
apn = s:option(Value, "apn", translate("APN"))
|
||||
apn.rmempty = true
|
||||
|
||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
||||
pincode.rmempty=true
|
||||
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||
pincode.rmempty = true
|
||||
|
||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
||||
username.rmempty=true
|
||||
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||
username.rmempty = true
|
||||
|
||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
||||
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")
|
||||
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||
password.rmempty = true
|
||||
|
||||
tool=s:option(Value,"tool",translate("Tools"))
|
||||
tool:value("quectel-CM","quectel-CM")
|
||||
tool.rmempty=true
|
||||
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||
auth.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
|
||||
|
||||
|
@ -9,4 +9,3 @@ EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
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_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-sierrawireless +kmod-usb-ohci +kmod-usb-serial \
|
||||
+kmod-usb-serial-option +kmod-usb-wdm \
|
||||
+kmod-usb2 +kmod-usb3 \
|
||||
+quectel-CM-5G +kmod-qmi_wwan_q +kmod-usb-net-cdc-mbim
|
||||
+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-serial-option +kmod-usb-wdm \
|
||||
+kmod-usb2 +kmod-usb3 \
|
||||
+quectel-CM-5G +kmod-qmi_wwan_q +kmod-usb-net-cdc-mbim
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
|
@ -5,5 +5,5 @@ function index()
|
||||
return
|
||||
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
|
||||
|
@ -1,18 +1,18 @@
|
||||
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
||||
-- 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"))
|
||||
mp.description=translate("Modem Server For OpenWrt")
|
||||
|
||||
s=mp:section(TypedSection,"service", "Base Setting")
|
||||
s = mp:section(TypedSection, "service", "Base Setting")
|
||||
s.anonymous = true
|
||||
|
||||
enabled=s:option(Flag,"enabled",translate("Enable"))
|
||||
enabled.default=0
|
||||
enabled.rmempty=false
|
||||
enabled = s:option(Flag, "enabled", translate("Enable"))
|
||||
enabled.default = 0
|
||||
enabled.rmempty = false
|
||||
|
||||
device=s:option(Value, "device", translate("Modem device"))
|
||||
device = s:option(Value, "device", translate("Modem device"))
|
||||
device.rmempty = false
|
||||
|
||||
local device_suggestions = nixio.fs.glob("/dev/cdc-wdm*")
|
||||
@ -24,28 +24,28 @@ if device_suggestions then
|
||||
end
|
||||
end
|
||||
|
||||
apn=s:option(Value,"apn",translate("APN"))
|
||||
apn.rmempty=true
|
||||
apn = s:option(Value, "apn", translate("APN"))
|
||||
apn.rmempty = true
|
||||
|
||||
pincode=s:option(Value,"pincode",translate("PIN"))
|
||||
pincode.rmempty=true
|
||||
pincode = s:option(Value, "pincode", translate("PIN"))
|
||||
pincode.rmempty = true
|
||||
|
||||
username=s:option(Value,"username",translate("PAP/CHAP username"))
|
||||
username.rmempty=true
|
||||
username = s:option(Value, "username", translate("PAP/CHAP username"))
|
||||
username.rmempty = true
|
||||
|
||||
password=s:option(Value,"password",translate("PAP/CHAP password"))
|
||||
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")
|
||||
password = s:option(Value, "password", translate("PAP/CHAP password"))
|
||||
password.rmempty = true
|
||||
|
||||
tool=s:option(Value,"tool",translate("Tools"))
|
||||
tool:value("quectel-CM","quectel-CM")
|
||||
tool.rmempty=true
|
||||
auth = s:option(Value, "auth", translate("Authentication Type"))
|
||||
auth.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
|
||||
|
||||
|
@ -9,4 +9,3 @@ EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
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