'udev' needs absolute path to 'echo'

This commit is contained in:
volth 2019-09-06 21:27:10 +00:00 committed by GitHub
parent efccc442d9
commit 8b93e5c8a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1092,7 +1092,7 @@ in
destination = "/etc/udev/rules.d/98-${name}";
text = ''
# enable and prefer IPv6 privacy addresses by default
ACTION=="add", SUBSYSTEM=="net", RUN+="echo 2 > /proc/sys/net/ipv6/conf/%k/use_tempaddr"
ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.coreutils}/bin/echo 2 > /proc/sys/net/ipv6/conf/%k/use_tempaddr"
'';
})
(pkgs.writeTextFile rec {