]> code.delx.au - monosys/blob - nm-dispatcher.d/drop-wifi-on-ethernet
opal-card-tool: More command line options
[monosys] / nm-dispatcher.d / drop-wifi-on-ethernet
1 #!/bin/bash
2
3 iface="$1"
4 action="$2"
5
6 if [ "$iface" = "ethernet" -a "$action" = "up" ]; then
7 nmcli radio wifi off
8 fi
9
10 if [ "$iface" = "ethernet" -a "$action" = "down" ]; then
11 nmcli radio wifi on
12 fi
13