diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-17 20:06:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-17 20:06:59 +0000 |
commit | 16469df3e430436df4d0172f07cc9f805b90311d (patch) | |
tree | 2151dbc3d485a3d0ca2f92266297f6a9c4a1ac66 /etc/rc | |
parent | 275cbd3fc4c3e783863367e83d2c4b23e25b58f2 (diff) | |
download | pfsense-16469df3e430436df4d0172f07cc9f805b90311d.zip pfsense-16469df3e430436df4d0172f07cc9f805b90311d.tar.gz |
MFC latest commits
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -34,26 +34,33 @@ if [ "$PLATFORM" = "cdrom" ]; then /etc/rc.cdrom fi -if [ "$PLATFORM" = "wrap" ]; then +if [ "$PLATFORM" = "embedded" ]; then /etc/rc.embedded fi # Enable console output if its muted. /sbin/conscontrol mute off >/dev/null +# Mount memory file system if it exists +/sbin/mount -a + # Mount /. If it fails run a fsck. if [ ! "$PLATFORM" = "cdrom" ] ; then - /sbin/mount -w / || /sbin/fsck -y + /sbin/mount -uw / || (/sbin/fsck -y && /sbin/mount -uw /) fi # Check to see if a compact flash mountpoint exists # If it fails to mount then run a fsck -y -if grep cf /etc/fstab; then - /sbin/mount -w /cf || /sbin/fsck -y +if grep -q cf /etc/fstab; then + /sbin/mount -uw /cf || (/sbin/fsck -y && /sbin/mount -uw /cf) fi -# Mount memory file system if it exists -/sbin/mount -a +# If /conf is a directory, convert it to a symlink +# to /cf/conf +if [ -d "/conf" ]; then + rm -rf /conf + ln -s /cf/conf /conf +fi if [ "$PLATFORM" = "cdrom" ] ; then # do nothing for cdrom platform |