File 0011-ifup-do-not-redirect-to-systemd-for-ppp-bnc-846361.patch of Package sysconfig

From d4f401b62ed0e96a01424aa287565540fd3f9c85 Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski <mt@suse.com>
Date: Wed, 26 Feb 2014 18:34:17 +0100
Subject: [PATCH] ifup: do not redirect to systemd for ppp (bnc#846361)

---
 scripts/ifup | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/scripts/ifup b/scripts/ifup
index b3dad11..2bbd0b0 100755
--- a/scripts/ifup
+++ b/scripts/ifup
@@ -297,6 +297,15 @@ esac
 ######################################################################
 # Check how to handle arguments and redirect to systemd when needed
 #
+SYSTEMD_REDIRECT=yes
+case $INTERFACETYPE in
+	lo|modem|dsl|ppp)
+		SYSTEMD_REDIRECT=no
+	;;
+esac
+if test "$PPID" -eq 1 -o "$DHCP" = "yes" -o "$CONTROL_IFPLUGD" = "yes" ; then
+	SYSTEMD_REDIRECT=no
+fi
 case $SCRIPTNAME in
 ifup)
 	case "$STARTMODE" in
@@ -308,12 +317,12 @@ ifup)
 	;;
 	esac
 
-	if test $PPID -ne 1 -a "$INTERFACE" != "lo" -a "$DHCP" != yes -a "$CONTROL_IFPLUGD" != no ; then
+	if test "$SYSTEMD_REDIRECT" = "yes" ; then
 		exec systemctl start "network@${INTERFACE}.service"
 	fi
 ;;
 ifdown)
-	if test $PPID -ne 1 -a "$INTERFACE" != "lo" -a "$DHCP" != yes -a "$CONTROL_IFPLUGD" != no ; then
+	if test "$SYSTEMD_REDIRECT" = "yes" ; then
 		exec systemctl stop "network@${INTERFACE}.service"
 	fi
 
-- 
1.8.4.5
openSUSE Build Service is sponsored by