File 0019-Check-before-running-a-script-in-netcontrol_services.patch of Package sysconfig.openSUSE_12.1_Update

From 6c61ed93bb28e722ece534826390a76c6b613385 Mon Sep 17 00:00:00 2001
From: Robert Milasan <rmilasan@suse.com>
Date: Thu, 2 Aug 2012 20:01:55 +0200
References: bnc#775281
Subject: [PATCH 01/11] Check before running a script in netcontrol_services

---
 scripts/netcontrol_services |    3 +++
 1 Datei geändert, 3 Zeilen hinzugefügt(+)

diff --git a/scripts/netcontrol_services b/scripts/netcontrol_services
index d0a55b7..340e340 100755
--- a/scripts/netcontrol_services
+++ b/scripts/netcontrol_services
@@ -32,6 +32,9 @@ cd /etc/sysconfig/network/ || exit 0
 test -r ./config && . ./config
 test -r scripts/functions && . scripts/functions
 
+# Check if there is a script for the action
+test -x "scripts/if${2}-services" || exit 0
+
 E=`iwconfig "${1}" 2>/dev/null | \
 	sed -n 's/^.*ESSID:\"\([^\"]*\)\".*$/\1/p' | \
 	sed -e 's/[^abcdefghijklmnopqrstuvwxyz0123456789=._-]/_/gi'`
-- 
1.7.10.4

openSUSE Build Service is sponsored by