2785 /lib/svc/bin/restore_repository incorrectly uses -eq on strings
Reviewed by: Richard Lowe <
[email protected]>
Reviewed by: Garrett D'Amore <
[email protected]>
Approved by: Dan McDonald <
[email protected]>
--- a/usr/src/cmd/svc/configd/restore_repository.sh Sun May 27 16:49:00 2012 +0200
+++ b/usr/src/cmd/svc/configd/restore_repository.sh Tue May 29 11:05:54 2012 -0400
@@ -21,6 +21,7 @@
# CDDL HEADER END
#
#
+# Copyright 2012 Nexenta Sysytems, Inc. All rights reserved.
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
@@ -91,7 +92,7 @@
If there are any problems which need human intervention, this script will
give instructions and then exit back to your shell."
-if [ "$myroot" -eq / ]; then
+if [ "$myroot" = "/" ]; then
system="system"
[ "`/sbin/zonename`" != global ] && system="zone"
echo >&2 "