summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-18 03:18:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-18 03:18:39 +0000
commitc268f10f14ac38690cba40becac3c34e225ac0dc (patch)
tree049239b4df265c78e9deb82ba89c4d1e0d723b63 /etc/rc
parent3d8b316bba44ece2b487269ac6febee01435853f (diff)
downloadpfsense-c268f10f14ac38690cba40becac3c34e225ac0dc.zip
pfsense-c268f10f14ac38690cba40becac3c34e225ac0dc.tar.gz
Do not run ldconfig if platform is cdrom
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/rc b/etc/rc
index ce05420..17a354a 100755
--- a/etc/rc
+++ b/etc/rc
@@ -32,7 +32,6 @@ SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
PLATFORM=`cat /etc/platform`
if [ "$PLATFORM" = "cdrom" ]; then
- echo ">>> Starting freesbie_1st ..."
/etc/rc.d/freesbie_1st
fi
@@ -93,17 +92,17 @@ echo -n "Syncing master.passwd... "
echo "done."
# Create an initial utmp file
-echo 1
cd /var/run && cp /dev/null utmp && chmod 644 utmp
# Build devices database
#dev_mkdb
-echo 2
-# Run ldconfig
-/sbin/ldconfig -elf /usr/lib /usr/local/lib /lib
-echo 3
+if [ ! "$PLATFORM" = "cdrom" ]; then
+ # Run ldconfig
+ /sbin/ldconfig -elf /usr/lib /usr/local/lib /lib
+fi
+
echo Mounting RW
/usr/local/bin/php -f /etc/rc.conf_mount_rw
OpenPOWER on IntegriCloud