summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-25 20:24:58 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-25 20:25:49 +0200
commit41e4d6e9ace4f3b717af3c0419b69a2ac7935116 (patch)
tree057e9b7e0123c59cd4b6bbd748fede55c2d051b4 /src
parent8d41a963d66e54807e8b0fa69700107e39cf485a (diff)
sysctl: apply network specific sysctls to each network card as they appear
Diffstat (limited to 'src')
-rw-r--r--src/.gitignore1
-rw-r--r--src/99-systemd.rules.in (renamed from src/99-systemd.rules)2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/.gitignore b/src/.gitignore
index 8832dd6d3f..6c4ccaa2dd 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -1,3 +1,4 @@
+99-systemd.rules
org.freedesktop.hostname1.policy
org.freedesktop.locale1.policy
org.freedesktop.login1.policy
diff --git a/src/99-systemd.rules b/src/99-systemd.rules.in
index f015d5e67b..f3829ad049 100644
--- a/src/99-systemd.rules
+++ b/src/99-systemd.rules.in
@@ -41,4 +41,6 @@ SUBSYSTEM=="printer", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
+SUBSYSTEM=="net", RUN+="@rootlibexecdir@/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/%k --prefix=/proc/sys/net/ipv4/neigh/%k --prefix=/proc/sys/net/ipv6/conf/%k --prefix=/proc/sys/net/ipv4/conf/%k"
+
LABEL="systemd_end"