summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-21 01:45:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-21 01:45:56 +0000
commit23a115c5a610ffe885f74fe48e47ff7fec84fa2d (patch)
treeee2aa80ace5c7dea0352a2ae00becf7fca1dea6e /etc/rc
parente4bf1c1908acbce7ccf602302b66980bd5108d6e (diff)
downloadpfsense-23a115c5a610ffe885f74fe48e47ff7fec84fa2d.zip
pfsense-23a115c5a610ffe885f74fe48e47ff7fec84fa2d.tar.gz
* Minor cleanups
* mkdir /var/tmp/vi.recover/ for cdrom platofrm on bootup
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 3ffa94e..5829f6f 100755
--- a/etc/rc
+++ b/etc/rc
@@ -32,18 +32,19 @@ if [ "$PLATFORM" = "cdrom" ]; then
/etc/rc.cdrom
fi
+# Enable console output if its muted.
+/sbin/conscontrol mute off >/dev/null
+
+# Mount all. If it fails run a fsck.
/sbin/mount -a || fsck -y && mount -a
+
if [ ! "$PLATFORM" = "cdrom" ]; then
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
-fi
-/sbin/conscontrol mute off >/dev/null
-
-if [ ! "$PLATFORM" = "cdrom" ]; then
/bin/mkdir -p /usr/savecore 2>/dev/null
/sbin/savecore /usr/savecore $SWAPDEVICE
fi
OpenPOWER on IntegriCloud