summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-18 03:25:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-18 03:25:43 +0000
commit653085254754a999548706cef5a5cc308449ef73 (patch)
treef271a66eef7aa2ba6dec534b406f4bb8cf0ef929 /etc/rc
parentc268f10f14ac38690cba40becac3c34e225ac0dc (diff)
downloadpfsense-653085254754a999548706cef5a5cc308449ef73.zip
pfsense-653085254754a999548706cef5a5cc308449ef73.tar.gz
Do not try to mount swap on cdrom platform
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc16
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index 17a354a..f916225 100755
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud