Created
July 13, 2017 17:25
-
-
Save embetrix/bedd0395b3e118bdf2b94db973304c0f to your computer and use it in GitHub Desktop.
initilialize 3/4g broadband connection using ofono
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
MODEM="/huawei_0" | |
PIN="1234" | |
APN="internet.eplus.de" | |
OFONO_DIR=/usr/lib/ofono/test | |
export PATH=$OFONO_DIR:$PATH | |
enable-modem $MODEM | |
if [ -n "$PIN" ]; then | |
enter-pin $MODEM pin $PIN | |
fi | |
create-internet-context $APN | |
online-modem $MODEM | |
activate-context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment