/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 90 Revision 91
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.52 2006/01/21 22:38:41 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.53 2006/01/21 22:44:13 wolf31o2 Exp $
5 5
6DHCP="yes" 6DHCP="yes"
7DETECT="yes" 7DETECT="yes"
8GPM="yes" 8GPM="yes"
9PCMCIA="no" 9PCMCIA="no"
149detect_ppc() { 149detect_ppc() {
150 local cpuinfo="$(awk -F: '/^cpu/{printf $2};/^$/{print ""}' /proc/cpuinfo 2>/dev/null | head -n 1)" 150 local cpuinfo="$(awk -F: '/^cpu/{printf $2};/^$/{print ""}' /proc/cpuinfo 2>/dev/null | head -n 1)"
151 local mhz="$(awk -F: '/^clock/{printf " %dMHz",int($2)};/^$/{print ""}' /proc/cpuinfo 2>/dev/null | head -n 1)" 151 local mhz="$(awk -F: '/^clock/{printf " %dMHz",int($2)};/^$/{print ""}' /proc/cpuinfo 2>/dev/null | head -n 1)"
152 local machinfo="$(awk -F: '/^detected as/{printf $2}' /proc/cpuinfo | cut -d'(' -f2 | cut -d')' -f1)" 152 local machinfo="$(awk -F: '/^detected as/{printf $2}' /proc/cpuinfo | cut -d'(' -f2 | cut -d')' -f1)"
153 local machtype="" 153 local machtype=""
154 # if [ -z "machinfo" ]
155 # then
156 # machinfo=$(awk -F: '/^machine/{printf $2}' /proc/cpuinfo)"
157 # fi
154 158
155 case "${machinfo}" in 159 case "${machinfo}" in
156 "PowerMac G4 AGP Graphics") 160 "PowerMac G4 AGP Graphics")
157 machtype="Apple PowerMac G4" 161 machtype="Apple PowerMac G4"
158 ;; 162 ;;
165 "PowerMac G5 Dual Core") 169 "PowerMac G5 Dual Core")
166 machtype="Apple PowerMac G5 Dual Core" 170 machtype="Apple PowerMac G5 Dual Core"
167 ;; 171 ;;
168 "Unknown Intrepid-based") 172 "Unknown Intrepid-based")
169 machtype="Apple Mac-Mini" 173 machtype="Apple Mac-Mini"
174 ;;
175 "MPC8241")
176 machtype="Kurobox"
177 ;;
178 "CHRP Pegasos2")
179 machtype="Pegasos 2"
170 ;; 180 ;;
171 *) 181 *)
172 machtype="Unknown PPC System" 182 machtype="Unknown PPC System"
173 ;; 183 ;;
174 esac 184 esac

Legend:
Removed from v.90  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.20