diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-04-14 15:48:51 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-04-14 15:56:48 -0300 |
commit | 8228109b6fb7b722acb951676ca2c94407657854 (patch) | |
tree | a00e7286909c4824d6e2646b043d5eae737010f7 /etc | |
parent | 3a644b618ef3d93196705f0325826a8a4bfd9017 (diff) | |
download | pfsense-8228109b6fb7b722acb951676ca2c94407657854.zip pfsense-8228109b6fb7b722acb951676ca2c94407657854.tar.gz |
Fix operator
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -46,7 +46,7 @@ fi if [ "${PLATFORM}" = "nanobsd" ]; then kldstat -qm zfs - if [ $? = 0 ]; then + if [ $? -eq 0 ]; then kldunload zfs fi fi @@ -58,7 +58,7 @@ kldstat -qm zfs # Handle ZFS read-only case if [ "$PLATFORM" = "pfSense" ]; then kldstat -qm zfs - if [ $? = 0 ]; then + if [ $? -eq 0 ]; then ZFSFSAVAILABLE=$(/sbin/zfs mount 2>/dev/null | wc -l) if [ $ZFSFSAVAILABLE -eq 0 ]; then kldunload zfs @@ -80,7 +80,7 @@ else /sbin/mount -uw / 2>/dev/null mount_rc=$? attempts=0 - while [ ${mount_rc} != 0 -a ${attempts} -lt 3 ]; do + while [ ${mount_rc} -ne 0 -a ${attempts} -lt 3 ]; do /sbin/fsck -y / /sbin/fsck -y /cf /sbin/mount -uw / 2>/dev/null @@ -91,7 +91,7 @@ else /sbin/mount -a 2>/dev/null mount_rc=$? attempts=0 - while [ ${mount_rc} != 0 -a ${attempts} -lt 3 ]; do + while [ ${mount_rc} -ne 0 -a ${attempts} -lt 3 ]; do /sbin/fsck -y / /sbin/mount -a 2>/dev/null mount_rc=$? @@ -117,7 +117,7 @@ else /sbin/mount -uw /cf 2>/dev/null mount_rc=$? attempts=0 - while [ ${mount_rc} != 0 -a ${attempts} -lt 3 ]; do + while [ ${mount_rc} -ne 0 -a ${attempts} -lt 3 ]; do /sbin/umount /cf /sbin/fsck -y /cf /sbin/mount -w /cf 2>/dev/null |