[arch-releng] AIF [PATCH 2/2] Already running dhcpcd is not stopped during network setup

Gerhard Brauer gerbra at archlinux.de
Sun Mar 1 15:36:35 EST 2009


Patch, this time inline:
---------------

>From 550190719d6c62e55da5946f68253deb3ca28799 Mon Sep 17 00:00:00 2001
From: Gerhard Brauer <gerbra at archlinux.de>
Date: Sun, 1 Mar 2009 20:34:42 +0100
Subject: [PATCH 2/2] Already running dhcpcd is not stopped during
network setup

We kill a process named dhcpd, but it must be dhcpcd. But instead of
killing the process it's better to use the dhcpcd own method to stop an
already running dhcp cleint for the selected interface.

Signed-off-by: Gerhard Brauer <gerbra at archlinux.de>
---
 src/core/libs/lib-ui-interactive.sh |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/core/libs/lib-ui-interactive.sh
b/src/core/libs/lib-ui-interactive.sh
index 8fdc5dc..5a34117 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -633,8 +633,7 @@ interactive_runtime_network() {
     ask_yesno "Do you want to use DHCP?"
     if [ $? -eq 0 ]; then
         infofy "Please wait.  Polling for DHCP server on $INTERFACE..."
-        killall dhcpd
-        killall -9 dhcpd
+	dhcpcd -k $INTERFACE >$LOG 2>&1
         sleep 1
         dhcpcd $INTERFACE >$LOG 2>&1
         if [ $? -ne 0 ]; then
-- 
1.6.1.3





More information about the arch-releng mailing list