diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-11-13 22:31:13 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-11-13 22:31:13 +0000 |
commit | 029b42fc689d8b0ce3f18cef2cfe0090c0beccbe (patch) | |
tree | 189a3a369b593401a5ae0352f09c53fca32291a3 /autoconfig | |
parent | Removed code from the old xfree->xorg-x11 changeover. (diff) | |
download | livecd-tools-029b42fc689d8b0ce3f18cef2cfe0090c0beccbe.tar.gz livecd-tools-029b42fc689d8b0ce3f18cef2cfe0090c0beccbe.tar.bz2 livecd-tools-029b42fc689d8b0ce3f18cef2cfe0090c0beccbe.zip |
This code should hopefully resolve some issues with DHCP on our release media. This is really ugly, but I'm not sure how else to go about it.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/livecd-tools/trunk@135 7bf51bff-881f-0410-a643-fba68b97345e
Diffstat (limited to 'autoconfig')
-rwxr-xr-x | autoconfig | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -386,6 +386,15 @@ start() { if [ "${DHCP}" = "yes" ] then einfo "Network device ${HILITE}${nics}${NORMAL} detected, DHCP broadcasting for IP ..." + if [ -f /var/run/dhcpcd-${nics}.pid ] + then + if [ ! $(/sbin/ifconfig ${nics} | grep "inet addr" ] + then + kill $(cat /var/run/dhcpcd-${nics}.pid) + sleep 2 + dhcpcd -n -h $(hostname) ${nics} + fi + fi fi done else |