diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-21 01:45:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-21 01:45:56 +0000 |
commit | 23a115c5a610ffe885f74fe48e47ff7fec84fa2d (patch) | |
tree | ee2aa80ace5c7dea0352a2ae00becf7fca1dea6e /etc/rc | |
parent | e4bf1c1908acbce7ccf602302b66980bd5108d6e (diff) | |
download | pfsense-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-x | etc/rc | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |