diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-16 01:14:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-16 01:14:23 +0000 |
commit | 5621d2d5357b9ab406029c652e9a5ad15855bca1 (patch) | |
tree | 2c2818d8d29b4047550a6ac4d169cfa9ddb8d0cd /etc/rc | |
parent | 193518f706d9106eec52178bc0b2c5f7104ef72e (diff) | |
download | pfsense-5621d2d5357b9ab406029c652e9a5ad15855bca1.zip pfsense-5621d2d5357b9ab406029c652e9a5ad15855bca1.tar.gz |
Take into account all platforms. Cleanup.
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |