Blame SOURCES/0179-network-ifup.sh-Don-t-try-to-modprobe-ipv6-if-alread.patch

a56a5e
From 962bb116632480313c4b5094e554926968d8b946 Mon Sep 17 00:00:00 2001
a56a5e
From: Vasiliy Tolstov <v.tolstov@selfip.ru>
a56a5e
Date: Mon, 26 May 2014 15:28:43 +0400
a56a5e
Subject: [PATCH] network/ifup.sh: Don't try to modprobe ipv6, if already
a56a5e
 available
a56a5e
a56a5e
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
a56a5e
a56a5e
[Edited-by: Harald Hoyer]
a56a5e
Simplified logic.
a56a5e
a56a5e
(cherry picked from commit 28f3f537c4ffb101c26def41c9a6a0278f9b4437)
a56a5e
---
a56a5e
 modules.d/40network/ifup.sh | 1 +
a56a5e
 1 file changed, 1 insertion(+)
a56a5e
a56a5e
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
1755ca
index fd84e4cd..79127f24 100755
a56a5e
--- a/modules.d/40network/ifup.sh
a56a5e
+++ b/modules.d/40network/ifup.sh
a56a5e
@@ -106,6 +106,7 @@ do_dhcp() {
a56a5e
 }
a56a5e
 
a56a5e
 load_ipv6() {
a56a5e
+    [ -d /proc/sys/net/ipv6 ] && return
a56a5e
     modprobe ipv6
a56a5e
     i=0
a56a5e
     while [ ! -d /proc/sys/net/ipv6 ]; do