Skip to content
Snippets Groups Projects
Commit 11959c32 authored by schiermi's avatar schiermi
Browse files

Added auto-off for WiFi while LAN connection.

parent a49e3b96
Branches
No related tags found
No related merge requests found
#!/bin/bash
IFACE=$1
ACTION=$2
case ${IFACE} in
eth*|usb*)
case ${ACTION} in
up)
nmcli r wifi off
;;
down)
nmcli r wifi on
;;
esac
;;
esac
......@@ -101,6 +101,13 @@ class system {
require => Package['network-manager'],
}
file { '/etc/NetworkManager/dispatcher.d/99-wlan':
ensure => file,
source => 'puppet:///modules/system/etc/NetworkManager/dispatcher.d/99-wlan',
mode => 'a=r',
require => Package['network-manager'],
}
file { '/etc/NetworkManager/system-connections/ffm.freifunk.net':
ensure => file,
source => 'puppet:///modules/system/etc/NetworkManager/system-connections/ffm.freifunk.net',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment