summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-11-10 19:21:23 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-11-10 19:21:23 +0100
commit45574ccfbfc49796712c60df7be573ad2f076db4 (patch)
treecbb4d4f343c90fd918a7ff73bad5f8ebc03d4da4 /src/core
parent39023f9d2471d562acdd4fe3fa7327682233d116 (diff)
fix for dhcp works only once (maybe)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/libs/lib-ui-interactive.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index a35ae90..b494dba 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -451,6 +451,9 @@ interactive_runtime_network() {
ask_yesno "Do you want to use DHCP?" 0 0
if [ $? -eq 0 ]; then
infofy "Please wait. Polling for DHCP server on $INTERFACE..."
+ killall dhcpd
+ killall -9 dhcpd
+ sleep 1
dhcpcd $INTERFACE >$LOG 2>&1
if [ $? -ne 0 ]; then
notify "Failed to run dhcpcd. See $LOG for details."