summarylogtreecommitdiffstats
path: root/qmi
diff options
context:
space:
mode:
authorSebastien Pahl2016-05-30 03:19:07 -0700
committerSebastien Pahl2016-05-30 03:20:00 -0700
commit0e283a20af158157fc9c747166bd9d7f46770a86 (patch)
tree30e833501a3699d5f7a3333d955a212c8a50ec2e /qmi
downloadaur-libqmi-qmi-over-mbim-netctl.tar.gz
Initial commit
Diffstat (limited to 'qmi')
-rw-r--r--qmi24
1 files changed, 24 insertions, 0 deletions
diff --git a/qmi b/qmi
new file mode 100644
index 000000000000..5c3f12ff974b
--- /dev/null
+++ b/qmi
@@ -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: