On Thu, Jun 13, 2013 at 10:45:12AM +0100, Ross Lagerwall wrote:
> Otherwise, when a network device is renamed, systemd-sysctl is run twice
> with the same network device name: once for ACTION="add" and once for
> ACTION="move".
Hm, but if I have some sysctl for the network device,
/proc/sys/net/ipv4/conf/enp0s1f3/log_martians=11 or something, aren't
I going to have it under the *new* name, not the old name?
Zbyszek
> ---
> rules/99-systemd.rules.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in
> index d17bdd9..e9b2da7 100644
> --- a/rules/99-systemd.rules.in
> +++ b/rules/99-systemd.rules.in
> @@ -49,7 +49,7 @@ SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",
> ENV{ID_USB_INTERFACES}=="*:0701??:
>
> # Apply sysctl variables to network devices (and only to those) as they
> appear.
>
> -SUBSYSTEM=="net", KERNEL!="lo", RUN+="@rootlibexecdir@/systemd-sysctl
> --prefix=/proc/sys/net/ipv4/conf/$name
> --prefix=/proc/sys/net/ipv4/neigh/$name
> --prefix=/proc/sys/net/ipv6/conf/$name
> --prefix=/proc/sys/net/ipv6/neigh/$name"
> +ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo",
> RUN+="@rootlibexecdir@/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/$name
> --prefix=/proc/sys/net/ipv4/neigh/$name
> --prefix=/proc/sys/net/ipv6/conf/$name
> --prefix=/proc/sys/net/ipv6/neigh/$name"
>
> # Asynchronously mount file systems implemented by these modules as
> # soon as they are loaded.
> --
> 1.8.3.1
>
> _______________________________________________
> systemd-devel mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel