summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-14 15:48:51 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-14 15:48:51 -0300
commitf74636b61b6ef0911ce060289424d1d57bf8f55a (patch)
tree28277edb4f757d7835ed36248b5f8b9ba9fefdcd /etc
parent5d6e96401184ad844208b0452031061e2d6a9f57 (diff)
downloadpfsense-f74636b61b6ef0911ce060289424d1d57bf8f55a.zip
pfsense-f74636b61b6ef0911ce060289424d1d57bf8f55a.tar.gz
Fix operator
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index 30f3501..32e2d34 100755
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud