Blame 0022-40network-kill-dhclient.sh-kill-dhclient-silently.patch

Harald Hoyer ee76a0
From a3f00efc99ac4736be3a1e24259d691bb9a9e19d Mon Sep 17 00:00:00 2001
Harald Hoyer ee76a0
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer ee76a0
Date: Thu, 8 Mar 2012 10:58:16 +0100
Harald Hoyer ee76a0
Subject: [PATCH] 40network/kill-dhclient.sh: kill dhclient silently
Harald Hoyer ee76a0
Harald Hoyer ee76a0
---
Harald Hoyer ee76a0
 modules.d/40network/kill-dhclient.sh |    4 ++--
Harald Hoyer ee76a0
 1 files changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer ee76a0
Harald Hoyer ee76a0
diff --git a/modules.d/40network/kill-dhclient.sh b/modules.d/40network/kill-dhclient.sh
Harald Hoyer ee76a0
index 2f834c1..78060f5 100755
Harald Hoyer ee76a0
--- a/modules.d/40network/kill-dhclient.sh
Harald Hoyer ee76a0
+++ b/modules.d/40network/kill-dhclient.sh
Harald Hoyer ee76a0
@@ -5,7 +5,7 @@
Harald Hoyer ee76a0
 for f in /tmp/dhclient.*.pid; do
Harald Hoyer ee76a0
     [ -e $f ] || continue
Harald Hoyer ee76a0
     read PID < $f;
Harald Hoyer ee76a0
-    kill $PID;
Harald Hoyer ee76a0
+    kill $PID >/dev/null 2>&1
Harald Hoyer ee76a0
 done
Harald Hoyer ee76a0
 
Harald Hoyer ee76a0
 sleep 0.1
Harald Hoyer ee76a0
@@ -13,5 +13,5 @@ sleep 0.1
Harald Hoyer ee76a0
 for f in /tmp/dhclient.*.pid; do
Harald Hoyer ee76a0
     [ -e $f ] || continue
Harald Hoyer ee76a0
     read PID < $f;
Harald Hoyer ee76a0
-    kill -9 $PID;
Harald Hoyer ee76a0
+    kill -9 $PID >/dev/null 2>&1
Harald Hoyer ee76a0
 done