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

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