Skip to content

Instantly share code, notes, and snippets.

@embetrix
Created July 13, 2017 17:25
Show Gist options
  • Save embetrix/bedd0395b3e118bdf2b94db973304c0f to your computer and use it in GitHub Desktop.
Save embetrix/bedd0395b3e118bdf2b94db973304c0f to your computer and use it in GitHub Desktop.
initilialize 3/4g broadband connection using ofono
#!/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