diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-28 21:08:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-28 21:08:14 +0000 |
commit | 2ed803e736d9256aafae7a29ae0bb84aaf746c5f (patch) | |
tree | 487b4bc445990d395ed9696be940c62907a7f349 /etc | |
parent | 0810f28a75fc01fe52b9a672daae87469fa98268 (diff) | |
download | pfsense-2ed803e736d9256aafae7a29ae0bb84aaf746c5f.zip pfsense-2ed803e736d9256aafae7a29ae0bb84aaf746c5f.tar.gz |
Do not hard code IDE swap device, probe /etc/fstab for its existance
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -20,11 +20,12 @@ echo echo "Starting pfSense ..." echo -/sbin/dumpon -v /dev/ad0s1b +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 /dev/ad0s1b +/sbin/savecore /usr/savecore $SWAPDEVICE rm -rf /var/run/* rm -rf /tmp/* |