/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 44 Revision 46
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.21 2005/03/01 18:13:51 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.22 2005/04/12 21:25:21 wolf31o2 Exp $
5 5
6echo "0" > /proc/sys/kernel/printk 6echo "0" > /proc/sys/kernel/printk
7DHCP="yes" 7DHCP="yes"
8DETECT="yes" 8DETECT="yes"
9GPM="yes" 9GPM="yes"
161 ebegin ${WARN}" driver = ${SOUND_DRIVER}"${HILITE} 161 ebegin ${WARN}" driver = ${SOUND_DRIVER}"${HILITE}
162 if [ -d /proc/asound/card0 ] && [ -x /usr/bin/amixer ]; then 162 if [ -d /proc/asound/card0 ] && [ -x /usr/bin/amixer ]; then
163 amixer scontrols > /etc/amixer 163 amixer scontrols > /etc/amixer
164 if [ -n "`grep Master /etc/amixer`" ] 164 if [ -n "`grep Master /etc/amixer`" ]
165 then 165 then
166 amixer -q set Master 75% >/dev/null 2>&1
167 amixer -q set Master unmute >/dev/null 2>&1 166 amixer -q set Master 95% unmute >/dev/null 2>&1
168 fi 167 fi
169 if [ -n "`grep PCM /etc/amixer`" ] 168 if [ -n "`grep PCM /etc/amixer`" ]
170 then 169 then
171 amixer -q set PCM 75% >/dev/null 2>&1
172 amixer -q set PCM unmute >/dev/null 2>&1 170 amixer -q set PCM 95% unmute >/dev/null 2>&1
173 fi 171 fi
174 if [ -n "`grep Mic /etc/amixer`" ] 172 if [ -n "`grep Mic /etc/amixer`" ]
175 then 173 then
176 amixer -q set Mic 75% >/dev/null 2>&1
177 amixer -q set Mic cap >/dev/null 2>&1 174 amixer -q set Mic 95% unmute cap >/dev/null 2>&1
178 fi 175 fi
179 if [ -n "`grep Wave /etc/amixer`" ] 176 if [ -n "`grep Wave /etc/amixer`" ]
180 then 177 then
181 amixer -q set Wave 75% >/dev/null 2>&1
182 amixer -q set Wave unmute >/dev/null 2>&1 178 amixer -q set Wave 95% unmute >/dev/null 2>&1
183 fi 179 fi
184 if [ -n "`grep Capture /etc/amixer`" ] 180 if [ -n "`grep Capture /etc/amixer`" ]
185 then 181 then
186 amixer -q set Capture 75% >/dev/null 2>&1
187 amixer -q set Capture cap >/dev/null 2>&1
188 amixer -q set Capture unmute >/dev/null 2>&1 182 amixer -q set Capture 95% unmute cap >/dev/null 2>&1
189 fi 183 fi
190 fi 184 fi
191 fi 185 fi
192 186
193 187

Legend:
Removed from v.44  
changed lines
  Added in v.46

  ViewVC Help
Powered by ViewVC 1.1.20