summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-26 00:14:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-26 00:14:38 +0000
commitdeff30cd73bcb422f329647647a8ed5616635184 (patch)
treee1a20deb3e0522c0baf95ae323f399a7948c8223 /etc/rc
parent64b243d23a937d0aa93fca5f1f3dc560ff3e286c (diff)
downloadpfsense-deff30cd73bcb422f329647647a8ed5616635184.zip
pfsense-deff30cd73bcb422f329647647a8ed5616635184.tar.gz
* We are already read/write, no need to invoke php + rw conf mount routines yet again and slow down the bootup process
* Add more bootup info so that it doesn't look "idle" during bootup
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc15
1 files changed, 10 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index f60a96f..a115aee 100755
--- a/etc/rc
+++ b/etc/rc
@@ -67,16 +67,17 @@ fi
if [ "$PLATFORM" = "cdrom" ] ; then
# do nothing for cdrom platform
elif [ "$PLATFORM" = "embedded" ] ; then
- #/usr/local/bin/php -f /etc/rc.conf_mount_rw
+ /usr/local/bin/php -f /etc/rc.conf_mount_rw
else
SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
- /usr/local/bin/php -f /etc/rc.conf_mount_rw
+ #/usr/local/bin/php -f /etc/rc.conf_mount_rw
fi
echo " done."
+echo -n "Creating symlinks "
# Make sure symlink is correct on embedded
if [ "$PLATFORM" = "embedded" ] ; then
rm /conf
@@ -136,6 +137,7 @@ mkdir -p /var/run /var/log /var/etc /var/db/entropy /var/at/jobs/ /var/empty 2>/
rm -rf /var/log/*
rm -rf /var/run/*
+echo -n " logs "
# generate circular logfiles
if [ ! "$PLATFORM" = "cdrom" ]; then
clog -i -s 10000 /var/log/system.log
@@ -162,6 +164,7 @@ chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/v
/sbin/adjkerntz -i
+echo -n " devfs "
DEVFS=`mount | grep devfs | wc -l | cut -d" " -f8`
if [ "$DEVFS" = "0" ]; then
mount_devfs devfs /dev
@@ -170,10 +173,9 @@ fi
# Create an initial utmp file
cd /var/run && cp /dev/null utmp && chmod 644 utmp
+echo -n " libraries "
/sbin/ldconfig -elf /usr/lib /usr/local/lib /lib
-/usr/local/bin/php -f /etc/rc.conf_mount_rw
-
# Make sure /etc/rc.conf doesn't exist.
if [ -f /etc/rc.conf ]; then
rm -rf /etc/rc.conf
@@ -181,7 +183,7 @@ fi
# Launching kbdmux(4)
if [ -f "/dev/kbdmux0" ]; then
- echo "Starting Keyboard Mux Services..."
+ echo -n " keyboard_mux "
kbdcontrol -k /dev/kbdmux0 < /dev/console
[ -c "/dev/atkbd0" ] && kbdcontrol -a atkbd0 < /dev/console
[ -c "/dev/ukbd0" ] && kbdcontrol -a ukbd0 < /dev/console
@@ -189,9 +191,12 @@ fi
# Fire up unionfs if mount points exist.
if [ -f /dist/uniondirs ]; then
+ echo -n " unionfs "
/etc/rc.d/unionfs start
fi
+echo " done."
+
# let the PHP-based configuration subsystem set up the system now
/etc/rc.bootup
OpenPOWER on IntegriCloud