Skip to content

Commit

Permalink
wwan/app: code alignment (#10850)
Browse files Browse the repository at this point in the history
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
  • Loading branch information
Beginner-Go authored Feb 4, 2023
1 parent 1daa71c commit b597493
Show file tree
Hide file tree
Showing 25 changed files with 123 additions and 127 deletions.
10 changes: 5 additions & 5 deletions package/wwan/app/luci-app-gobinetmodem/Makefile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ function index()
if not nixio.fs.access("/etc/config/gobinetmodem") then
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
Original file line number Diff line number Diff line change
@@ -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")

return mp
tool = s:option(Value, "tool", translate("Tools"))
tool:value("quectel-CM", "quectel-CM")
tool.rmempty = true

return mp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ EOF

rm -f /tmp/luci-indexcache
exit 0

Empty file modified package/wwan/app/luci-app-pcimodem/Makefile
100755 → 100644
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ function index()
if not nixio.fs.access("/etc/config/pcimodem") then
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
52 changes: 26 additions & 26 deletions package/wwan/app/luci-app-pcimodem/luasrc/model/cbi/pcimodem.lua
Original file line number Diff line number Diff line change
@@ -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")

return mp
tool = s:option(Value, "tool", translate("Tools"))
tool:value("quectel-CM", "quectel-CM")
tool.rmempty = true

return mp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ EOF

rm -f /tmp/luci-indexcache
exit 0

Empty file modified package/wwan/app/luci-app-spdmodem/Makefile
100755 → 100644
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ function index()
if not nixio.fs.access("/etc/config/spdmodem") then
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
52 changes: 26 additions & 26 deletions package/wwan/app/luci-app-spdmodem/luasrc/model/cbi/spdmodem.lua
Original file line number Diff line number Diff line change
@@ -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")

return mp
tool = s:option(Value, "tool", translate("Tools"))
tool:value("quectel-CM", "quectel-CM")
tool.rmempty = true

return mp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ EOF

rm -f /tmp/luci-indexcache
exit 0

10 changes: 5 additions & 5 deletions package/wwan/app/luci-app-usbmodem/Makefile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ function index()
if not nixio.fs.access("/etc/config/usbmodem") then
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
54 changes: 27 additions & 27 deletions package/wwan/app/luci-app-usbmodem/luasrc/model/cbi/usbmodem.lua
Original file line number Diff line number Diff line change
@@ -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*")
Expand All @@ -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")

return mp
tool = s:option(Value, "tool", translate("Tools"))
tool:value("quectel-CM", "quectel-CM")
tool.rmempty = true

return mp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ EOF

rm -f /tmp/luci-indexcache
exit 0

Empty file modified package/wwan/app/luci-proto-3x/Makefile
100755 → 100644
Empty file.
Empty file.
Empty file modified package/wwan/app/luci-proto-mbim/Makefile
100755 → 100644
Empty file.
Empty file.
Empty file.

0 comments on commit b597493

Please sign in to comment.