mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only process items if we can find grep
This commit is contained in:
parent
87db1017ee
commit
8a8f51b7cb
8
etc/rc
8
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user