diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-08-15 14:11:55 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-08-15 14:11:55 -0400 |
commit | 8a8f51b7cb345cb56cb6739eabc9dd031f45d335 (patch) | |
tree | 3c0562ab1fb1c74d9f974667ad02f6ce617a523f /etc/rc | |
parent | 87db1017ee146c86d50177fd0a67c0ddf7d68cd6 (diff) | |
download | pfsense-8a8f51b7cb345cb56cb6739eabc9dd031f45d335.zip pfsense-8a8f51b7cb345cb56cb6739eabc9dd031f45d335.tar.gz |
Only process items if we can find grep
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -29,9 +29,11 @@ version=`cat /etc/version` echo "Mounting filesystems..." # Handle ZFS read-only case -WHEREISROOT=`/sbin/mount | /usr/bin/grep " / " | /usr/bin/grep "tank" | /usr/bin/cut -d' ' -f1` -if [ "$WHEREISROOT" != "" ]; then - /sbin/zfs set readonly=off $WHEREISROOT +if [ -f /usr/bin/grep ]; then + WHEREISROOT=`/sbin/mount | /usr/bin/grep " / " | /usr/bin/grep "tank" | /usr/bin/cut -d' ' -f1` + if [ "$WHEREISROOT" != "" ]; then + /sbin/zfs set readonly=off $WHEREISROOT + fi fi if [ "$PLATFORM" = "cdrom" ]; then |