Added NetworkManager script
This commit is contained in:
parent
0359b34332
commit
31dafd534a
1 changed files with 12 additions and 0 deletions
12
etc/NetworkManager/dispatcher.d/99-wlan
Executable file
12
etc/NetworkManager/dispatcher.d/99-wlan
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$1" = "enp0s31f6" ]; then
|
||||
case "$2" in
|
||||
up)
|
||||
nmcli radio wifi off
|
||||
;;
|
||||
down)
|
||||
nmcli radio wifi on
|
||||
;;
|
||||
esac
|
||||
fi
|
Loading…
Reference in a new issue