diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-10 19:21:23 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-10 19:21:23 +0100 |
commit | 45574ccfbfc49796712c60df7be573ad2f076db4 (patch) | |
tree | cbb4d4f343c90fd918a7ff73bad5f8ebc03d4da4 /src/core/libs | |
parent | 39023f9d2471d562acdd4fe3fa7327682233d116 (diff) |
fix for dhcp works only once (maybe)
Diffstat (limited to 'src/core/libs')
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 3 |
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." |