summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-11-13 22:31:13 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-11-13 22:31:13 +0000
commit029b42fc689d8b0ce3f18cef2cfe0090c0beccbe (patch)
tree189a3a369b593401a5ae0352f09c53fca32291a3 /autoconfig
parentRemoved code from the old xfree->xorg-x11 changeover. (diff)
downloadlivecd-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-xautoconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/autoconfig b/autoconfig
index 93fbbfb..f77e414 100755
--- a/autoconfig
+++ b/autoconfig
@@ -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