mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
40 lines
1.1 KiB
Lua
40 lines
1.1 KiB
Lua
-- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
|
|
-- Licensed to the public under the Apache License 2.0.
|
|
|
|
|
|
mp=Map("gobinetmodem",translate("gobinet Modem Server"))
|
|
mp.description=translate("Modem Server For OpenWrt")
|
|
|
|
s=mp:section(TypedSection,"service", "Base Setting")
|
|
s.anonymous = true
|
|
|
|
enabled=s:option(Flag,"enabled",translate("Enable"))
|
|
enabled.default=0
|
|
enabled.rmempty=false
|
|
|
|
apn=s:option(Value,"apn",translate("APN"))
|
|
apn.rmempty=true
|
|
|
|
pincode=s:option(Value,"pincode",translate("PIN"))
|
|
pincode.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")
|
|
|
|
tool=s:option(Value,"tool",translate("Tools"))
|
|
tool:value("quectel-CM","quectel-CM")
|
|
tool.rmempty=true
|
|
|
|
return mp
|
|
|