/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 73 Revision 74
1#!/sbin/runscript 1#!/sbin/runscript
2# Copyright 1999-2005 Gentoo Foundation 2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2 3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.39 2005/08/02 14:07:06 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.40 2005/08/15 20:53:23 wolf31o2 Exp $
5 5
6DHCP="yes" 6DHCP="yes"
7DETECT="yes" 7DETECT="yes"
8GPM="yes" 8GPM="yes"
9PCMCIA="no" 9PCMCIA="no"
214 NETDEVICES="$(awk -F: '/eth.:|tr.:|ath.:|wlan.:/{print $1}' /proc/net/dev 2>/dev/null)" 214 NETDEVICES="$(awk -F: '/eth.:|tr.:|ath.:|wlan.:/{print $1}' /proc/net/dev 2>/dev/null)"
215 fi 215 fi
216 216
217 if [ -n "${NETDEVICES}" ] 217 if [ -n "${NETDEVICES}" ]
218 then 218 then
219 for nics in ${NETDEVICES}
220 do
219 if [ "${DHCP}" = "yes" ] 221 if [ "${DHCP}" = "yes" ]
220 then 222 then
221 ebegin ${GOOD}"Network device${HILITE}${NETDEVICES}${GOOD} detected,${WARN} DHCP broadcasting for IP.${NORMAL}" 223 ebegin ${GOOD}"Network device${HILITE}${nics}${GOOD} detected,${WARN} DHCP broadcasting for IP.${NORMAL}"
222 dhcpcd -n -h $(hostname) & 224 dhcpcd -n -h $(hostname) &
223 fi 225 fi
224 eend 226 eend
225 227 done
226 else 228 else
227 ebegin ${BAD}"No Network device auto detected.${NORMAL}" 229 ebegin ${BAD}"No Network device auto detected.${NORMAL}"
228 fi 230 fi
229 231
230 if [ "${ALSA}" = "yes" ] 232 if [ "${ALSA}" = "yes" ]

Legend:
Removed from v.73  
changed lines
  Added in v.74

  ViewVC Help
Powered by ViewVC 1.1.20