1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

wpa_supplicant module: remove preStart hack

If the config file is managed imperatively we shouldn't touch it.
This commit is contained in:
Robin Gloster 2015-12-29 10:22:03 +00:00
parent 56a53ff458
commit 4bf7afc78e

View file

@ -106,16 +106,6 @@ in {
path = [ pkgs.wpa_supplicant ];
preStart = ''
touch -a ${configFile}
chmod 600 ${configFile}
'' + optionalString cfg.userControlled.enable ''
if [ ! -s ${configFile} ]; then
echo "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=${cfg.userControlled.group}" >> ${configFile}
echo "update_config=1" >> ${configFile}
fi
'';
script = ''
${if ifaces == [] then ''
for i in $(cd /sys/class/net && echo *); do