git.iko.soy/typeable/nixpkgs
on master help sign in
wpa_supplicant module: remove preStart hack

If the config file is managed imperatively we shouldn't touch it.

commit4bf7afc78ee061ecf2a9e54b202e37239d50428b authorRobin Gloster <mail@glob.in> dateTue 29 Dec 2015, 10:22 (11 years ago) parent56a53ff
1 file changed−10
nixos/modules/services/networking/wpa_supplicant.nix−10
nixos/modules/services/networking/wpa_supplicant.nix−10
@@ -106,16 +106,6 @@ in {
106106
107107 path = [ pkgs.wpa_supplicant ];
108108
109− preStart = ''
110− touch -a ${configFile}
111− chmod 600 ${configFile}
112− '' + optionalString cfg.userControlled.enable ''
113− if [ ! -s ${configFile} ]; then
114− echo "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=${cfg.userControlled.group}" >> ${configFile}
115− echo "update_config=1" >> ${configFile}
116− fi
117− '';
118−
119109 script = ''
120110 ${if ifaces == [] then ''
121111 for i in $(cd /sys/class/net && echo *); do