initial commit
This commit is contained in:
12
templates/wlan_auto_toggle.j2
Executable file
12
templates/wlan_auto_toggle.j2
Executable file
@@ -0,0 +1,12 @@
|
||||
#! /bin/sh
|
||||
|
||||
if [ "$1" = "{{ ansible_default_ipv4.interface }}" ]; then
|
||||
case "$2" in
|
||||
up)
|
||||
nmcli radio wifi off
|
||||
;;
|
||||
down)
|
||||
nmcli radio wifi on
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
Reference in New Issue
Block a user