diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-18 03:25:43 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-18 03:25:43 +0000 |
commit | 653085254754a999548706cef5a5cc308449ef73 (patch) | |
tree | f271a66eef7aa2ba6dec534b406f4bb8cf0ef929 /etc/rc | |
parent | c268f10f14ac38690cba40becac3c34e225ac0dc (diff) | |
download | pfsense-653085254754a999548706cef5a5cc308449ef73.zip pfsense-653085254754a999548706cef5a5cc308449ef73.tar.gz |
Do not try to mount swap on cdrom platform
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -23,14 +23,18 @@ echo echo "Welcome to pfSense ${version} ..." echo +# Set our operating platform +PLATFORM=`cat /etc/platform` + /sbin/mount -a || fsck -y && mount -a -SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1` -/sbin/dumpon -v $SWAPDEVICE 2>/dev/null -/sbin/swapon -a 2>/dev/null +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 +fi /usr/local/bin/php -f /etc/rc.conf_mount_rw -PLATFORM=`cat /etc/platform` if [ "$PLATFORM" = "cdrom" ]; then /etc/rc.d/freesbie_1st fi @@ -94,10 +98,6 @@ echo "done." # Create an initial utmp file cd /var/run && cp /dev/null utmp && chmod 644 utmp -# Build devices database -#dev_mkdb - - if [ ! "$PLATFORM" = "cdrom" ]; then # Run ldconfig /sbin/ldconfig -elf /usr/lib /usr/local/lib /lib |