summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-08-15 14:11:55 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-08-15 14:11:55 -0400
commit8a8f51b7cb345cb56cb6739eabc9dd031f45d335 (patch)
tree3c0562ab1fb1c74d9f974667ad02f6ce617a523f /etc/rc
parent87db1017ee146c86d50177fd0a67c0ddf7d68cd6 (diff)
downloadpfsense-8a8f51b7cb345cb56cb6739eabc9dd031f45d335.zip
pfsense-8a8f51b7cb345cb56cb6739eabc9dd031f45d335.tar.gz
Only process items if we can find grep
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 6e894db..6e957ef 100755
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud