From 316afee4ea5b49bf75eb66b7e95c3ad3bd0ef21e Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Thu, 5 Mar 2009 21:03:17 +0100 Subject: fix for killing dhcpcd. Thanks Gerhard B.! --- TODO | 4 ---- src/core/libs/lib-ui-interactive.sh | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/TODO b/TODO index 6ed3e71..f58f885 100644 --- a/TODO +++ b/TODO @@ -35,10 +35,6 @@ CURRENT ISSUES: * port from /arch/setup: grub install chroot thing (http://projects.archlinux.org/?p=installer.git;a=commitdiff;h=4565577dbd2182dd49612f1e0b68288f5573bf7b) (waiting for ticket http://bugs.archlinux.org/task/13277) * ext4 default options? -O dir_index,extent,uninit_bg ? * find a way to not have to preload libs and stuff, only load them when needed. -> faster start of install program -* if dhcpd already runs for $reason, the installer will try again @ configure network and fail. - i tried killall dhcpd, killall -9 dhcpd first but that didn't help: it can't kill the process or something... - I can also add something like for iface in `moo` (or only the one selected iface); do ifconfig $iface down; - ifconfig $iface up; done, and then dhcpd again * core/interactive: do not check hard for the dependencies. a user could really know what he's doing or need to reboot after partitioning a disk and skip that check or something. Alternatively, maybe just show which steps are done successfully in the main menu * support maybe ntp to set clock diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index bd66038..85b9b58 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -637,8 +637,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 -- cgit v1.2.3-54-g00ecf