/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 76 Revision 77
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.41 2005/08/16 22:34:19 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.42 2005/08/30 17:52:45 wolf31o2 Exp $
5 5
6DHCP="yes" 6DHCP="yes"
7DETECT="yes" 7DETECT="yes"
8GPM="yes" 8GPM="yes"
9PCMCIA="no" 9PCMCIA="no"
127 fi 127 fi
128 128
129 if [ "${APM}" = "yes" ] 129 if [ "${APM}" = "yes" ]
130 then 130 then
131 modprobe apm power_off=1 >/dev/null 2>&1 && ebegin ${GOOD}"APM BIOS found, power management functions enabled.${NORMAL}" 131 modprobe apm power_off=1 >/dev/null 2>&1 && ebegin ${GOOD}"APM BIOS found, power management functions enabled.${NORMAL}"
132 [ -x /etc/init.d/apmd ] && schedule_service_startup apmd 132 [ -x /etc/init.d/apmd ] && start_service apmd
133 else 133 else
134 ebegin ${GOOD}"Not Loading APM Bios support.${NORMAL}" 134 ebegin ${GOOD}"Not Loading APM Bios support.${NORMAL}"
135 eend 135 eend
136 fi 136 fi
137 137
140 modprobe processor >/dev/null 2>&1 && ebegin ${GOOD} ACPI power management functions enabled.${NORMAL} && modprobe thermal >/dev/null 140 modprobe processor >/dev/null 2>&1 && ebegin ${GOOD} ACPI power management functions enabled.${NORMAL} && modprobe thermal >/dev/null
141 modprobe fan >/dev/null 2>&1 141 modprobe fan >/dev/null 2>&1
142 modprobe button >/dev/null 2>&1 142 modprobe button >/dev/null 2>&1
143 modprobe battery >/dev/null 2>&1 143 modprobe battery >/dev/null 2>&1
144 modprobe ac >/dev/null 2>&1 144 modprobe ac >/dev/null 2>&1
145 [ -x /etc/init.d/acpid ] && schedule_service_startup acpid 145 [ -x /etc/init.d/acpid ] && start_service acpid
146 eend 146 eend
147 fi 147 fi
148 148
149 if [ "${IDEDMA}" = "yes" ] 149 if [ "${IDEDMA}" = "yes" ]
150 then 150 then
151 [ -x /etc/init.d/hdparm ] && schedule_service_startup hdparm 151 [ -x /etc/init.d/hdparm ] && start_service hdparm
152 fi 152 fi
153 153
154 if [ "${PCMCIA}" = "yes" ] 154 if [ "${PCMCIA}" = "yes" ]
155 then 155 then
156 ebegin ${HILITE} "PCMCIA enabled via cmdline" 156 ebegin ${HILITE} "PCMCIA enabled via cmdline"
157 [ -x /etc/init.d/pcmcia ] && schedule_service_startup pcmcia 157 [ -x /etc/init.d/pcmcia ] && start_service pcmcia
158 fi 158 fi
159 159
160 if [ "${DHCP}" = "no" ] 160 if [ "${DHCP}" = "no" ]
161 then 161 then
162 sed -i -e '/^ifconfig_eth.*dhcp.*/ s/^/#/' \ 162 sed -i -e '/^ifconfig_eth.*dhcp.*/ s/^/#/' \
189 else 189 else
190 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm 190 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm
191 fi 191 fi
192 if [ "${GPM}" = "yes" ] 192 if [ "${GPM}" = "yes" ]
193 then 193 then
194 [ -x /etc/init.d/gpm ] && schedule_service_startup gpm 194 [ -x /etc/init.d/gpm ] && start_service gpm
195 fi 195 fi
196 fi 196 fi
197 eend 197 eend
198 fi 198 fi
199 199
200 if [ "${HOTPLUG}" = "yes" ] 200 if [ "${HOTPLUG}" = "yes" ]
201 then 201 then
202 #Check whether we should be using hotplug or coldplug 202 #Check whether we should be using hotplug or coldplug
203 if [ -x /etc/init.d/coldplug ] 203 if [ -x /etc/init.d/coldplug ]
204 then 204 then
205 schedule_service_startup coldplug 205 start_service coldplug
206 elif [ -x /etc/init.d/hotplug ] 206 elif [ -x /etc/init.d/hotplug ]
207 then 207 then
208 schedule_service_startup hotplug 208 start_service hotplug
209 fi 209 fi
210 else 210 else
211 ebegin ${BAD}"Hotplug disabled via cmdline${NORMAL}" 211 ebegin ${BAD}"Hotplug disabled via cmdline${NORMAL}"
212 fi 212 fi
213 213
246 ebegin " ${WARN}${SOUND_FULLNAME}" 246 ebegin " ${WARN}${SOUND_FULLNAME}"
247 [ -n "${SOUND_DRIVER}" ] 247 [ -n "${SOUND_DRIVER}" ]
248 ebegin ${WARN}" driver = ${SOUND_DRIVER}"${HILITE} 248 ebegin ${WARN}" driver = ${SOUND_DRIVER}"${HILITE}
249 if [ -x /etc/init.d/alsasound ] 249 if [ -x /etc/init.d/alsasound ]
250 then 250 then
251 schedule_service_startup alsasound 251 start_service alsasound
252 else 252 else
253 ebegin ${WARN}"/etc/init.d/alsasound not found, skipping." 253 ebegin ${WARN}"/etc/init.d/alsasound not found, skipping."
254 einfo "You will need to set volume controls manually." 254 einfo "You will need to set volume controls manually."
255 fi 255 fi
256 for i in $(cat /proc/asound/cards | cut -d" " -f1) 256 for i in $(cat /proc/asound/cards | cut -d" " -f1)
296 if [ "${X11}" = "no" ] 296 if [ "${X11}" = "no" ]
297 then 297 then
298 touch /etc/init.d/.noxdm 298 touch /etc/init.d/.noxdm
299 fi 299 fi
300 300
301 if [ -n "${XDESC}" -o -n "${XDESC}" ] 301 if [ -n "${XDESC}" ]
302 then 302 then
303 ebegin ${GOOD}"VideoCard: ${WARN} ${XDESC}" 303 ebegin ${GOOD}"VideoCard: ${WARN} ${XDESC}"
304 eend 304 eend
305 fi 305 fi
306 306

Legend:
Removed from v.76  
changed lines
  Added in v.77

  ViewVC Help
Powered by ViewVC 1.1.20