/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 11 Revision 12
1#!/sbin/runscript 1#!/sbin/runscript
2# Copyright 1999-2002 Gentoo Technologies, Inc. 2# Copyright 1999-2002 Gentoo Technologies, Inc.
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.4 2004/09/28 01:35:58 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.5 2004/10/21 01:13:34 wolf31o2 Exp $
5 5
6echo "0" > /proc/sys/kernel/printk 6echo "0" > /proc/sys/kernel/printk
7DHCP="yes" 7DHCP="yes"
8DETECT="yes" 8DETECT="yes"
9PCMCIA="no" 9PCMCIA="no"
50 if [ "$DETECT" = "yes" ]; then 50 if [ "$DETECT" = "yes" ]; then
51 ebegin $WARN"Hardware detection started" 51 ebegin $WARN"Hardware detection started"
52 PC=`awk -F: '/^processor/{printf "Processor"$2" is"};/^model name/{printf $2};/^vendor_id/{printf vendor};/^cpu MHz/{printf " %dMHz",int($2)};/^cache size/{printf ","$2" Cache"};/^$/{print ""}' /proc/cpuinfo 2>/dev/null` 52 PC=`awk -F: '/^processor/{printf "Processor"$2" is"};/^model name/{printf $2};/^vendor_id/{printf vendor};/^cpu MHz/{printf " %dMHz",int($2)};/^cache size/{printf ","$2" Cache"};/^$/{print ""}' /proc/cpuinfo 2>/dev/null`
53 ebegin $GOOD"$PC" 53 ebegin $GOOD"$PC"
54 eend 54 eend
55 hwsetup -p >/dev/null 55 [ -x /usr/bin/hwsetup ] && hwsetup -p >/dev/null
56 eend 56 eend
57 else 57 else
58 ebegin $WARN"Hardware detection disabled via cmdline$NORMAL" 58 ebegin $WARN"Hardware detection disabled via cmdline$NORMAL"
59 fi 59 fi
60 60

Legend:
Removed from v.11  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.20