/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 28 Revision 29
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.16 2005/01/28 18:47:11 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.17 2005/01/29 21:54:59 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"
32 if [ "${x}" = "doapm" ]; then 32 if [ "${x}" = "doapm" ]; then
33 APM="yes" 33 APM="yes"
34 ACPI="no" 34 ACPI="no"
35 fi 35 fi
36 36
37 if [ "${x}" = "acpi=on" -o "${x}" = "acpi=force"]; then 37 if [ "${x}" = "acpi=on" -o "${x}" = "acpi=force" ]; then
38 APM="no" 38 APM="no"
39 ACPI="yes" 39 ACPI="yes"
40 fi 40 fi
41 41
42 if [ "${x}" = "nohotplug" ]; then 42 if [ "${x}" = "nohotplug" ]; then
59 else 59 else
60 ebegin ${WARN}"Hardware detection disabled via cmdline$NORMAL" 60 ebegin ${WARN}"Hardware detection disabled via cmdline$NORMAL"
61 fi 61 fi
62 62
63 if [ "${APM}" = "yes" ]; then 63 if [ "${APM}" = "yes" ]; then
64 insmod apm power_off=1 >/dev/null 2>&1 && ebegin ${GOOD}"APM BIOS found, power management functions enabled.${NORMAL}" 64 modprobe apm power_off=1 >/dev/null 2>&1 && ebegin ${GOOD}"APM BIOS found, power management functions enabled.${NORMAL}"
65 [ -x /etc/init.d/apmd ] && /etc/init.d/apmd start 65 [ -x /etc/init.d/apmd ] && /etc/init.d/apmd start
66 else 66 else
67 ebegin ${GOOD}"Not Loading APM Bios support.${NORMAL}" 67 ebegin ${GOOD}"Not Loading APM Bios support.${NORMAL}"
68 eend 68 eend
69 fi 69 fi
70 70
71 if [ "${ACPI}" = "yes" -o "${ACPI}" = "force" ]; then 71 if [ "${ACPI}" = "yes" ]; then
72 insmod processor >/dev/null 2>&1 && ebegin ${GOOD} ACPI power management functions enabled.${NORMAL} && insmod thermal >/dev/null 72 modprobe processor >/dev/null 2>&1 && ebegin ${GOOD} ACPI power management functions enabled.${NORMAL} && modprobe thermal >/dev/null
73 insmod fan >/dev/null 2>&1 73 modprobe fan >/dev/null 2>&1
74 insmod button >/dev/null 2>&1 74 modprobe button >/dev/null 2>&1
75 insmod battery >/dev/null 2>&1 75 modprobe battery >/dev/null 2>&1
76 insmod ac >/dev/null 2>&1 76 modprobe ac >/dev/null 2>&1
77 [ -x /etc/init.d/acpid ] && /etc/init.d/acpid start 77 [ -x /etc/init.d/acpid ] && /etc/init.d/acpid start
78 eend 78 eend
79 fi 79 fi
80 80
81 if [ "${PCMCIA}" = "yes" ]; then 81 if [ "${PCMCIA}" = "yes" ]; then
109 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm 109 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm
110 fi 110 fi
111 if [ "$GPM" = "yes" ]; then 111 if [ "$GPM" = "yes" ]; then
112 [ -x /etc/init.d/gpm ] && /etc/init.d/gpm start 112 [ -x /etc/init.d/gpm ] && /etc/init.d/gpm start
113 fi 113 fi
114 fi
114 eend 115 eend
115 fi 116 fi
116 117
117 if [ "${HOTPLUG}" = "yes" ]; then 118 if [ "${HOTPLUG}" = "yes" ]; then
118 #Check whether we should be using hotplug or coldplug 119 #Check whether we should be using hotplug or coldplug

Legend:
Removed from v.28  
changed lines
  Added in v.29

  ViewVC Help
Powered by ViewVC 1.1.20