summarylogtreecommitdiffstats
path: root/qmi
blob: 5c3f12ff974bc18f8813421a850ac2f8a06f465c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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: