this works, as long as noone renames the wifi card! :)
This commit is contained in:
@@ -1,22 +1,8 @@
|
||||
# disable wifi powermanagement
|
||||
|
||||
nm-conf_d:
|
||||
file.directory:
|
||||
- name: /etc/NetworkManager/conf.d
|
||||
|
||||
nm-conf_powersave-off:
|
||||
ifup-wlan0-powersave-off:
|
||||
file.managed:
|
||||
- name: /etc/NetworkManager/conf.d/default-wifi-powersave.conf
|
||||
- source:
|
||||
- salt://hardware/raspberrypi/wifi/files/default-wifi-powersave.conf
|
||||
- require:
|
||||
- file: /etc/NetworkManager/conf.d
|
||||
|
||||
if-up_powersave-off:
|
||||
file.managed:
|
||||
- name: /etc/network/if-up.d/wifi-powermanagement-off
|
||||
- mode: 0755
|
||||
- source:
|
||||
- salt://hardware/raspberrypi/wifi/files/wifi-powermanagement-off
|
||||
|
||||
- name: /etc/network/interfaces.d/wlan0
|
||||
- source:
|
||||
- salt://hardware/raspberrypi/wifi/files/interfaces-wlan0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user