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:48:51 -0300 |
commit | f74636b61b6ef0911ce060289424d1d57bf8f55a (patch) | |
tree | 28277edb4f757d7835ed36248b5f8b9ba9fefdcd /etc | |
parent | 5d6e96401184ad844208b0452031061e2d6a9f57 (diff) | |
download | pfsense-f74636b61b6ef0911ce060289424d1d57bf8f55a.zip pfsense-f74636b61b6ef0911ce060289424d1d57bf8f55a.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 |