wpa_supplicant module: remove preStart hack
If the config file is managed imperatively we shouldn't touch it.
This commit is contained in:
parent
d03b35f881
commit
609457458e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user