richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
803fb7
From 05f3e4b89d6503a4a327be9bee9802097bc8c860 Mon Sep 17 00:00:00 2001
803fb7
From: Lukas Nykryn <lnykryn@redhat.com>
803fb7
Date: Wed, 13 May 2015 17:11:48 +0200
803fb7
Subject: [PATCH] rules: reload sysctl settings when the bridge module is
803fb7
 loaded
803fb7
803fb7
Resolves: #1182105
803fb7
---
803fb7
 rules/40-redhat.rules | 3 +++
803fb7
 1 file changed, 3 insertions(+)
803fb7
803fb7
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
803fb7
index 8231caae9..556a3a3a9 100644
803fb7
--- a/rules/40-redhat.rules
803fb7
+++ b/rules/40-redhat.rules
803fb7
@@ -5,3 +5,6 @@ SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}
803fb7
 
803fb7
 # Memory hotadd request
803fb7
 SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"
803fb7
+
803fb7
+# reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
803fb7
+ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"