summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 6e957ef..99ae96c 100755
--- a/etc/rc
+++ b/etc/rc
@@ -29,10 +29,12 @@ version=`cat /etc/version`
echo "Mounting filesystems..."
# Handle ZFS read-only case
-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
+if [ "$PLATFORM" = "pfSense" ]; then
+ 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
fi
OpenPOWER on IntegriCloud