summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-12-05 21:01:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-12-05 21:01:10 +0000
commit2a0695534cec9d1ec8792c9f24c1bc7eca5ded8c (patch)
tree3318ee6e14dd8a9d9a4c9c3f7e07ffa411823c86 /etc/rc
parentb2ffe419d679d80404922dc76aa347bdeb27b33d (diff)
downloadpfsense-2a0695534cec9d1ec8792c9f24c1bc7eca5ded8c.zip
pfsense-2a0695534cec9d1ec8792c9f24c1bc7eca5ded8c.tar.gz
dont try to deterimine swap volume until primary volume is mounted (need grep and cut)
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 4a027e5..39d15aa 100755
--- a/etc/rc
+++ b/etc/rc
@@ -20,9 +20,9 @@ echo
echo "Starting pfSense ..."
echo
+/sbin/mount -a || fsck -y && mount -a
SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
/sbin/dumpon -v $SWAPDEVICE
-/sbin/mount -a || fsck -y && mount -a
/sbin/swapon -a
/bin/mkdir -p /usr/savecore 2>/dev/null
/sbin/savecore /usr/savecore $SWAPDEVICE
OpenPOWER on IntegriCloud