summaryrefslogtreecommitdiffstats
path: root/etc/rc
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:56:48 -0300
commit8228109b6fb7b722acb951676ca2c94407657854 (patch)
treea00e7286909c4824d6e2646b043d5eae737010f7 /etc/rc
parent3a644b618ef3d93196705f0325826a8a4bfd9017 (diff)
downloadpfsense-8228109b6fb7b722acb951676ca2c94407657854.zip
pfsense-8228109b6fb7b722acb951676ca2c94407657854.tar.gz
Fix operator
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index bed2d34..4389a9c 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