Commit 304e2c3d authored by Ad Schellevis's avatar Ad Schellevis

(ppp) add modem dialer templates for Huawei / Sierra Wireless,...

(ppp) add modem dialer templates for Huawei / Sierra Wireless, https://github.com/opnsense/core/issues/1004
parent 449f506b
......@@ -382,6 +382,8 @@ ModemIdent:
print "ATI\r\n"
match "ADTRAN EXPRESS XR" ModemIdentAdtranXRT
match "Model: Ovation MC950D Card" ModemIdentMC950D
match "Manufacturer: Huawei Technologies Co., Ltd." ModemIdentHuawei
match "Manufacturer: Sierra Wireless, Incorporated" ModemIdentSierra
match "ERR" ModemIdentGeneric
match "OK\r\n" ModemIdentGeneric
wait 3
......@@ -435,6 +437,8 @@ ModemIdentCustom:
set $ModemSetupFunc CustomSetup
return
ModemIdentUsr:
set $SportsterHack "no"
if $matchedString == "Sportster" set $SportsterHack "yes"
......@@ -1668,3 +1672,33 @@ AutoLoginTimeout:
log "Auto-login timeout."
cancel all
return
#====================================================================================================================
#
# OPNsense additional 3g/4g modems
#
#====================================================================================================================
ModemIdentHuawei:
set $ModemDescription "Huawei Modem"
if $SimPin != "" call DialPeerSetPin
if $APN != "" call DialPeerSetAPN
set $ModemSetupFunc HuaweiSetup
return
HuaweiSetup:
set $modemCmd "&F&C1&D2E0$M0"
call ModemCmd2
return
ModemIdentSierra:
set $ModemDescription "Sierra Wireless Modem"
if $SimPin != "" call DialPeerSetPin
if $APN != "" call DialPeerSetAPN
set $ModemSetupFunc SierraSetup
return
SierraSetup:
set $modemCmd "&F&C1&D2E0$M0"
call ModemCmd2
return
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment