/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 64 Revision 67
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.32 2005/07/01 14:46:54 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.33 2005/07/08 18:38:46 wolf31o2 Exp $
5 5
6DHCP="yes" 6DHCP="yes"
7DETECT="yes" 7DETECT="yes"
8GPM="yes" 8GPM="yes"
9PCMCIA="no" 9PCMCIA="no"
84 fi 84 fi
85 85
86 if [ "${APM}" = "yes" ] 86 if [ "${APM}" = "yes" ]
87 then 87 then
88 modprobe apm power_off=1 >/dev/null 2>&1 && ebegin ${GOOD}"APM BIOS found, power management functions enabled.${NORMAL}" 88 modprobe apm power_off=1 >/dev/null 2>&1 && ebegin ${GOOD}"APM BIOS found, power management functions enabled.${NORMAL}"
89 [ -x /etc/init.d/apmd ] && /etc/init.d/apmd start 89 [ -x /etc/init.d/apmd ] && schedule_service_startup apmd
90 else 90 else
91 ebegin ${GOOD}"Not Loading APM Bios support.${NORMAL}" 91 ebegin ${GOOD}"Not Loading APM Bios support.${NORMAL}"
92 eend 92 eend
93 fi 93 fi
94 94
97 modprobe processor >/dev/null 2>&1 && ebegin ${GOOD} ACPI power management functions enabled.${NORMAL} && modprobe thermal >/dev/null 97 modprobe processor >/dev/null 2>&1 && ebegin ${GOOD} ACPI power management functions enabled.${NORMAL} && modprobe thermal >/dev/null
98 modprobe fan >/dev/null 2>&1 98 modprobe fan >/dev/null 2>&1
99 modprobe button >/dev/null 2>&1 99 modprobe button >/dev/null 2>&1
100 modprobe battery >/dev/null 2>&1 100 modprobe battery >/dev/null 2>&1
101 modprobe ac >/dev/null 2>&1 101 modprobe ac >/dev/null 2>&1
102 [ -x /etc/init.d/acpid ] && /etc/init.d/acpid start 102 [ -x /etc/init.d/acpid ] && schedule_service_startup acpid
103 eend 103 eend
104 fi 104 fi
105 105
106 if [ "${IDEDMA}" = "yes" ] 106 if [ "${IDEDMA}" = "yes" ]
107 then 107 then
108 [ -x /etc/init.d/hdparm ] && /etc/init.d/hdparm start 108 [ -x /etc/init.d/hdparm ] && schedule_service_startup hdparm
109 fi 109 fi
110 110
111 if [ "${PCMCIA}" = "yes" ] 111 if [ "${PCMCIA}" = "yes" ]
112 then 112 then
113 ebegin ${HILITE} "PCMCIA enabled via cmdline" 113 ebegin ${HILITE} "PCMCIA enabled via cmdline"
114 /etc/init.d/pcmcia start 114 [ -x /etc/init.d/pcmcia ] && schedule_service_startup pcmcia
115 fi 115 fi
116 116
117 if [ "${DHCP}" = "no" ] 117 if [ "${DHCP}" = "no" ]
118 then 118 then
119 sed -i -e '/^ifconfig_eth.*dhcp.*/ s/^/#/' \ 119 sed -i -e '/^ifconfig_eth.*dhcp.*/ s/^/#/' \
146 else 146 else
147 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm 147 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm
148 fi 148 fi
149 if [ "${GPM}" = "yes" ] 149 if [ "${GPM}" = "yes" ]
150 then 150 then
151 [ -x /etc/init.d/gpm ] && /etc/init.d/gpm start 151 [ -x /etc/init.d/gpm ] && schedule_service_startup gpm
152 fi 152 fi
153 fi 153 fi
154 eend 154 eend
155 fi 155 fi
156 156
157 if [ "${HOTPLUG}" = "yes" ] 157 if [ "${HOTPLUG}" = "yes" ]
158 then 158 then
159 #Check whether we should be using hotplug or coldplug 159 #Check whether we should be using hotplug or coldplug
160 if [ -x /etc/init.d/coldplug ] 160 if [ -x /etc/init.d/coldplug ]
161 then 161 then
162 /etc/init.d/coldplug start 162 schedule_service_startup coldplug
163 else 163 elif [ -x /etc/init.d/hotplug ]
164 [ -x /etc/init.d/hotplug ] && /etc/init.d/hotplug start 164 then
165 schedule_service_startup hotplug
165 fi 166 fi
166 else 167 else
167 ebegin ${BAD}"Hotplug disabled via cmdline${NORMAL}" 168 ebegin ${BAD}"Hotplug disabled via cmdline${NORMAL}"
168 fi 169 fi
169 170

Legend:
Removed from v.64  
changed lines
  Added in v.67

  ViewVC Help
Powered by ViewVC 1.1.20