/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 136 Revision 137
285 *) 285 *)
286 PC= 286 PC=
287 ;; 287 ;;
288 esac 288 esac
289 [ -n "${PC}" ] && einfo "${PC}" 289 [ -n "${PC}" ] && einfo "${PC}"
290 [ -x /usr/sbin/hwsetup ] && hwsetup -p >/dev/null 290 [ -x /usr/sbin/hwsetup ] && hwsetup
291 eend 291 eend
292 else 292 else
293 ewarn "Hardware detection disabled via cmdline ..." 293 ewarn "Hardware detection disabled via cmdline ..."
294 fi 294 fi
295 295
386 if [ "${DHCP}" = "yes" ] 386 if [ "${DHCP}" = "yes" ]
387 then 387 then
388 einfo "Network device ${HILITE}${nics}${NORMAL} detected, DHCP broadcasting for IP ..." 388 einfo "Network device ${HILITE}${nics}${NORMAL} detected, DHCP broadcasting for IP ..."
389 if [ -f /var/run/dhcpcd-${nics}.pid ] 389 if [ -f /var/run/dhcpcd-${nics}.pid ]
390 then 390 then
391 if [ ! $(/sbin/ifconfig ${nics} | grep "inet addr") ] 391 if [ -z "$(/sbin/ifconfig ${nics} | grep 'inet addr')" ]
392 then 392 then
393 kill $(cat /var/run/dhcpcd-${nics}.pid) 393 kill $(cat /var/run/dhcpcd-${nics}.pid)
394 sleep 2 394 sleep 2
395 dhcpcd -n -h $(hostname) ${nics} 395 dhcpcd -n -h $(hostname) ${nics}
396 fi 396 fi

Legend:
Removed from v.136  
changed lines
  Added in v.137

  ViewVC Help
Powered by ViewVC 1.1.20