summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeb Campbell <jeb-c4@pfsense.org>2005-08-30 20:25:07 +0000
committerJeb Campbell <jeb-c4@pfsense.org>2005-08-30 20:25:07 +0000
commitc0819d14d875b0de179ae9fa19f74fbe6c8e8354 (patch)
tree50ff6e0bf0da7811c8d9dc8e9cf4ca3b5bcae8e2
parentaad37fd2147b6994f7ded269290776982ca75290 (diff)
downloadpfsense-c0819d14d875b0de179ae9fa19f74fbe6c8e8354.zip
pfsense-c0819d14d875b0de179ae9fa19f74fbe6c8e8354.tar.gz
Embedded fixes.
mount /usr.uzip No swap on embedded.
-rwxr-xr-xetc/rc11
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index e61a3b8..b76853d 100755
--- a/etc/rc
+++ b/etc/rc
@@ -13,6 +13,10 @@
trap : 2
trap : 3
+# mount /usr.uzip if it exists
+[ -x /usr.uzip ] && [ -d /usr ] && [ ! -d /usr/local ] \
+ && /sbin/mount_cd9660 /dev/`/sbin/mdconfig -af /usr.uzip`.uzip /usr
+
HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
export HOME PATH
@@ -41,7 +45,12 @@ fi
# Mount all. If it fails run a fsck.
/sbin/mount -a || /sbin/fsck -y && /sbin/mount -a || /sbin/fsck -y
-if [ ! "$PLATFORM" = "cdrom" ]; then
+if [ "$PLATFORM" = "cdrom" ] ; then
+ echo "No swap on ${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
OpenPOWER on IntegriCloud