diff options
author | Jeb Campbell <jeb-c4@pfsense.org> | 2005-08-30 20:25:07 +0000 |
---|---|---|
committer | Jeb Campbell <jeb-c4@pfsense.org> | 2005-08-30 20:25:07 +0000 |
commit | c0819d14d875b0de179ae9fa19f74fbe6c8e8354 (patch) | |
tree | 50ff6e0bf0da7811c8d9dc8e9cf4ca3b5bcae8e2 | |
parent | aad37fd2147b6994f7ded269290776982ca75290 (diff) | |
download | pfsense-c0819d14d875b0de179ae9fa19f74fbe6c8e8354.zip pfsense-c0819d14d875b0de179ae9fa19f74fbe6c8e8354.tar.gz |
Embedded fixes.
mount /usr.uzip
No swap on embedded.
-rwxr-xr-x | etc/rc | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |