Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
netctl
Commits
e49fa190
Commit
e49fa190
authored
Mar 19, 2017
by
Florian Bruhin
Committed by
Jouke Witteveen
Mar 21, 2017
Browse files
Make it possible to pass a custom SYSCFG for mobile_ppp connections
parent
e1fad0d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
docs/examples/mobile_ppp
View file @
e49fa190
...
...
@@ -19,4 +19,5 @@ AccessPointName=apn
# Mode can be one of 3Gpref, 3Gonly, GPRSpref, GPRSonly, None
# These only work for Huawei USB modems; all other devices should use None
# If Mode is set to SYSCFG=..., a custom AT^SYSCFG line is sent instead.
Mode=3Gpref
docs/netctl.profile.5.txt
View file @
e49fa190
...
...
@@ -438,7 +438,8 @@ type:
This option is used to specify the connection mode. Can be one of
`3Gpref', `3Gonly', `GPRSpref', `GPRSonly', `None'. This generates
AT commands specific to certain Huawei modems; all other devices
should use `None'.
should use `None'. If `Mode` is set to `SYSCFG=...`, a custom
`AT^SYSCFG` line is sent instead.
'Init='::
An initialization string sent to the modem before dialing. This
...
...
src/lib/connections/mobile_ppp
View file @
e49fa190
...
...
@@ -43,6 +43,8 @@ TIMEOUT 3
3Gpref
)
printf
"
\^
SYSCFG=2,2,3fffffff,0,1"
;;
GPRSonly
)
printf
"
\^
SYSCFG=13,1,3fffffff,0,0"
;;
GPRSpref
)
printf
"
\^
SYSCFG=2,1,3fffffff,0,0"
;;
SYSCFG
=
*
)
printf
"
\^
$Mode
"
;;
# If set to "None", this is a no-op
esac
)
'
${
AccessPointName
:+
'OK-AT-OK'
'AT+CGDCONT=1,$(quote_word "IP"),$(quote_word "$AccessPointName")'
}
'OK' 'ATDT
${
PhoneNumber
:-
*99#
}
'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment