summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-16 00:55:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-16 00:55:37 +0000
commitd8a2ce2c6dcd1fdb45523979db45f9d49448405b (patch)
treefb17c27ab1b373d98186f2be0df3037d39be4be2 /etc/rc
parentb0db8a9e3905e17748186bee3a83a8e0549d4551 (diff)
downloadpfsense-d8a2ce2c6dcd1fdb45523979db45f9d49448405b.zip
pfsense-d8a2ce2c6dcd1fdb45523979db45f9d49448405b.tar.gz
Spew less on boot
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc15
1 files changed, 11 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 70f2e72..28f8b66 100755
--- a/etc/rc
+++ b/etc/rc
@@ -6,7 +6,12 @@
# originally based on m0n0wall (http://neon1.net/m0n0wall)
# Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
# All rights reserved.
-#
+
+#/bin/stty status '^T'
+#/bin/stty susp '^-' intr '^-' quit '^-'
+
+#trap : 2
+#trap : 3
# mount /usr.uzip if it exists
[ -x /usr.uzip ] && [ -d /usr ] && [ ! -d /usr/local ] \
@@ -53,13 +58,16 @@ fi
if [ "$PLATFORM" = "cdrom" ] ; then
echo "No swap on ${PLATFORM}"
-elif [ "$PLATFORM" = "embedded" ] ; then
- echo "No swap on ${PLATFORM}"
/usr/local/bin/php -f /etc/rc.conf_mount_rw
else
+ SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
+ /sbin/dumpon -v $SWAPDEVICE 2>/dev/null
/sbin/swapon -a 2>/dev/null
/usr/local/bin/php -f /etc/rc.conf_mount_rw
+
+ /bin/mkdir -p /usr/savecore 2>/dev/null
+ /sbin/savecore /usr/savecore $SWAPDEVICE
fi
# Repair symlinks if they are broken
@@ -155,7 +163,6 @@ cd /var/run && cp /dev/null utmp && chmod 644 utmp
# Make sure /etc/rc.conf doesn't exist.
if [ -f /etc/rc.conf ]; then
- echo "Removing /etc/rc.conf..."
rm -rf /etc/rc.conf
fi
OpenPOWER on IntegriCloud