Skip to content

Commit

Permalink
kill dhclient which does not need to run after we received the info f…
Browse files Browse the repository at this point in the history
…rom DHCPD
  • Loading branch information
Thomas Lange committed Jan 28, 2019
1 parent d7a0267 commit 75feea6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/get-boot-info
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ get_dhcp_info() {
if [ -n "$netdevices_up" ]; then
dhclient -lf /dev/null -cf /usr/share/fai/dhclient-fai.conf -sf /usr/share/fai/dhclient-fai-script $netdevices >>$bootlog 2> $LOGDIR/dhclient.log
setnet
if [ -f /run/dhclient.pid ]; then
kill `cat /run/dhclient.pid`
fi
fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit 75feea6

Please sign in to comment.