/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 6 Revision 10
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.3 2004/07/11 23:33:45 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.4 2004/09/28 01:35:58 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"
27 PCMCIA="yes" 27 PCMCIA="yes"
28 fi 28 fi
29 29
30 if [ "$x" = "doapm" ]; then 30 if [ "$x" = "doapm" ]; then
31 APM="yes" 31 APM="yes"
32 ACPI="no"
32 fi 33 fi
33 34
34 if [ "$x" = "acpi=on" ]; then 35 if [ "$x" = "acpi=on" ]; then
35 APM="no" 36 APM="no"
36 ACPI="yes" 37 ACPI="yes"
38 fi
39
40 if [ "$x" = "nohotplug" ]; then
41 HOTPLUG="no"
37 fi 42 fi
38done 43done
39 44
40depend() { 45depend() {
41 need modules 46 need modules
76 ebegin $HILITE "PCMCIA enabled via cmdline" 81 ebegin $HILITE "PCMCIA enabled via cmdline"
77 /etc/init.d/pcmcia start 82 /etc/init.d/pcmcia start
78 fi 83 fi
79 84
80 if [ "$DHCP" = "no" ]; then 85 if [ "$DHCP" = "no" ]; then
81 sed 's/iface_eth0="dhcp"/#iface_eth0="dhcp"/' /etc/conf.d/net > /etc/conf.d/net1 86 sed -i 's/iface_eth0="dhcp"/#iface_eth0="dhcp"/' /etc/conf.d/net
82 cp /etc/conf.d/net1 /etc/conf.d/net
83 rm /etc/conf.d/net1
84 ebegin $BAD"Skipping DHCP broadcast detection as requested on boot commandline." 87 ebegin $BAD"Skipping DHCP broadcast detection as requested on boot commandline."
85 fi 88 fi
86 89
87 #Read in what hwsetup has found 90 #Read in what hwsetup has found
88 [ -f /etc/sysconfig/knoppix ] && . /etc/sysconfig/knoppix 91 [ -f /etc/sysconfig/knoppix ] && . /etc/sysconfig/knoppix
110 fi 113 fi
111 114
112 if [ -n "$NETDEVICES" ]; then 115 if [ -n "$NETDEVICES" ]; then
113 if [ "${DHCP}" = "yes" ]; then 116 if [ "${DHCP}" = "yes" ]; then
114 ebegin $GOOD"Network device$HILITE$NETDEVICES$GOOD detected,$WARN DHCP broadcasting for IP.$NORMAL" 117 ebegin $GOOD"Network device$HILITE$NETDEVICES$GOOD detected,$WARN DHCP broadcasting for IP.$NORMAL"
115 dhcpcd 118 dhcpcd &
116 fi 119 fi
117 eend 120 eend
118 121
119 else 122 else
120 ebegin $BAD"No Network device auto detected.$NORMAL" 123 ebegin $BAD"No Network device auto detected.$NORMAL"

Legend:
Removed from v.6  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.20