diff options
author | Sebastien Pahl | 2016-05-30 03:19:07 -0700 |
---|---|---|
committer | Sebastien Pahl | 2016-05-30 03:20:00 -0700 |
commit | 0e283a20af158157fc9c747166bd9d7f46770a86 (patch) | |
tree | 30e833501a3699d5f7a3333d955a212c8a50ec2e /qmi | |
download | aur-libqmi-qmi-over-mbim-netctl.tar.gz |
Initial commit
Diffstat (limited to 'qmi')
-rw-r--r-- | qmi | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +# QMI connection support for netctl + +. "$SUBR_DIR/ip" +. "$SUBR_DIR/rfkill" + + +qmi_up() { + if [[ $RFKill ]]; then + rf_enable "$Interface" "$RFKill" || return 1 + fi + + qmi-network $Device start || return 1 + chmod 644 /etc/resolv.conf +} + +qmi_down() { + qmi-network $Device stop + if [[ $RFKill ]]; then + rf_disable "$Interface" "$RFKill" + fi +} + + +# vim: ft=sh ts=4 et sw=4: |