/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 14 Revision 15
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.6 2004/10/23 13:17:13 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.7 2004/11/18 01:01:52 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"
125 125
126 126
127 if [ -n "$SOUND_FULLNAME" -o -n "$SOUND_DRIVER" ]; then 127 if [ -n "$SOUND_FULLNAME" -o -n "$SOUND_DRIVER" ]; then
128 ebegin $GOOD"Soundcard:" 128 ebegin $GOOD"Soundcard:"
129 eend 129 eend
130 if [ -d /proc/asound/card0 ] && [ -x /usr/bin/amixer ]; then
131 amixer scontrols > /etc/amixer
132 [ -n "`grep Master /etc/amixer`" ] && amixer set Master 75% \
133 && amixer set Master unmute
134 [ -n "`grep PCM /etc/amixer`" ] && amixer set PCM 75% \
135 && amixer set PCM unmute
136 [ -n "`grep Mic /etc/amixer`" ] && amixer set Mic 75% \
137 && amixer set Mic cap
138 [ -n "`grep Wave /etc/amixer`" ] && amixer set Wave 75% \
139 && amixer set Wave unmute
140 [ -n "`grep Capture /etc/amixer`" ] && amixer set Capture 75% \
141 && amixer set Capture cap && amixer set Capture unmute
142 fi
143 [ -n "$SOUND_FULLNAME" ] 130 [ -n "$SOUND_FULLNAME" ]
144 ebegin " $WARN$SOUND_FULLNAME" 131 ebegin " $WARN$SOUND_FULLNAME"
145 [ -n "$SOUND_DRIVER" ] 132 [ -n "$SOUND_DRIVER" ]
146 ebegin $WARN" driver = $SOUND_DRIVER"$HILITE 133 ebegin $WARN" driver = $SOUND_DRIVER"$HILITE
134 if [ -d /proc/asound/card0 ] && [ -x /usr/bin/amixer ]; then
135 amixer scontrols > /etc/amixer
136 [ -n "`grep Master /etc/amixer`" ] && amixer -q set Master 75% \
137 && amixer -q set Master unmute
138 [ -n "`grep PCM /etc/amixer`" ] && amixer -q set PCM 75% \
139 && amixer -q set PCM unmute
140 [ -n "`grep Mic /etc/amixer`" ] && amixer -q set Mic 75% \
141 && amixer -q set Mic cap
142 [ -n "`grep Wave /etc/amixer`" ] && amixer -q set Wave 75% \
143 && amixer -q set Wave unmute
144 [ -n "`grep Capture /etc/amixer`" ] && amixer -q set Capture 75% \
145 && amixer -q set Capture cap && amixer -q set Capture unmute
146 fi
147 fi 147 fi
148 148
149 149
150 if [ -n "$XDESC" -o -n "$XDESC" ]; then 150 if [ -n "$XDESC" -o -n "$XDESC" ]; then
151 ebegin $GOOD"VideoCard: $WARN ${XDESC}" 151 ebegin $GOOD"VideoCard: $WARN ${XDESC}"

Legend:
Removed from v.14  
changed lines
  Added in v.15

  ViewVC Help
Powered by ViewVC 1.1.20