summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-16 01:14:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-16 01:14:23 +0000
commit5621d2d5357b9ab406029c652e9a5ad15855bca1 (patch)
tree2c2818d8d29b4047550a6ac4d169cfa9ddb8d0cd /etc/rc
parent193518f706d9106eec52178bc0b2c5f7104ef72e (diff)
downloadpfsense-5621d2d5357b9ab406029c652e9a5ad15855bca1.zip
pfsense-5621d2d5357b9ab406029c652e9a5ad15855bca1.tar.gz
Take into account all platforms. Cleanup.
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index 58ee179..91b615e 100755
--- a/etc/rc
+++ b/etc/rc
@@ -56,19 +56,20 @@ fi
# Mount memory file system if it exists
/sbin/mount -a
-if [ "$PLATFORM" = "embedded" ] ; then
+if [ "$PLATFORM" = "cdrom" ] ; then
+ # do nothing for cdrom 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
if [ ! -L /etc/syslog.conf ]; then
rm -rf /etc/syslog.conf
OpenPOWER on IntegriCloud