Added auto-off for WiFi while LAN connection.
[inetstation.git] / modules / system / files / etc / NetworkManager / dispatcher.d / 99-wlan
1 #!/bin/bash
2
3 IFACE=$1
4 ACTION=$2
5
6 case ${IFACE} in
7         eth*|usb*)
8                 case ${ACTION} in
9                         up)
10                                 nmcli r wifi off
11                         ;;
12                         down)
13                                 nmcli r wifi on
14                         ;;
15                 esac
16         ;;
17 esac