home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacPeople 2003 February 1
/
MACPEOPLE-2003-02-01.ISO.7z
/
MACPEOPLE-2003-02-01.ISO
/
特集1/Install&Backup
/
BootCD(10.2)
/
BootCD.dmg
/
BootCD.app
/
Contents
/
Resources
/
rc.cdrom
< prev
next >
Wrap
Text File
|
2002-10-04
|
3KB
|
130 lines
#!/bin/sh
# Copyright 2000, Apple Computer Inc.
# pmb
#
# Arg[1] is passed from /etc/rc
#
BootType=${1:-multiuser}
#
# Source the preheat script if it exists, speeds CD boot by > 1 minute
#
if [ -f /System/Installation/CDIS/preheat.sh ]; then
/System/Installation/CDIS/preheat.sh
fi
#
# Load Kernel Extensions
#
kextd
#
# Set up the loopback address so NetInfo can talk to itself
#
/sbin/ifconfig lo0 127.0.0.1 netmask 255.0.0.0 up
#
# mount volfs for Carbon
#
mount_volfs /.vol
#
# mount root_device to update vnode information
#
mount -u -o ro /
#
# Source a local configuration script if present
#
if [ -f /etc/rc.cdrom.local ]; then
/etc/rc.cdrom.local
fi
#
# Start AppleTypeServices
#
START_ATS=/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/StartATSServer
if [ -f "${START_ATS}" ]; then
"${START_ATS}"
fi
#
# Start the PasteBoardServer
#
START_PBS=/System/Library/CoreServices/pbs
if [ -f "${START_PBS}" ]; then
"${START_PBS}" &
fi
/System/Library/StartupItems/AppServices/AppServices
/System/Library/StartupItems/SecurityServer/SecurityServer
/System/Library/StartupItems/AuthServer/AuthServer
/System/Library/StartupItems/Cron/Cron
/System/Library/StartupItems/Accounting/Accounting
#
# Start the Window Manager
#
WINDOW_MGR="/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/Window Manager"
if [ -x "${WINDOW_MGR}" ]; then
"${WINDOW_MGR}"
fi
#
# The Launcher is responsible for the progress bar while the Installer loads
#
Launch=/System/Installation/CDIS/splash
#
# The Installer gets around!
#
if [ -x /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder ]; then
Finder=/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
fi
if [ -x /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock ]; then
Dock=/System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
fi
if [ -x /sbin/autodiskmount ]; then
Automount=/sbin/autodiskmount
fi
#
# Here we go!
#
export OS_INSTALL=1
${Dock} &
${Launch} ${Finder}
err=$?
#
# We only get here if the Installer exits abnormally
# The script that launched us will power off the machine, so we'll reboot first
#
# sleep just long enough for the WM to settle in case the installer crashes instantly
sleep 2
# (The [M] keeps us from matching ourself)
kill `ps -ax | awk '/Window [M]anager/ {print $1}'`
# popconsole tells the kernel to tear down the blue screen and spinning #kernel wheel
/System/Installation/CDIS/popconsole
echo
echo "The Installer has unexpectedly quit. (error ${err})"
echo
echo
echo "Press the Return key to restart the computer..."
read
/sbin/reboot