changeset 13706:b83bad61dfe1

2785 /lib/svc/bin/restore_repository incorrectly uses -eq on strings Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Dan McDonald <danmcd@nexenta.com>
author Igor Kozhukhov <igor.kozhukhov@nexenta.com>
date Tue, 29 May 2012 11:05:54 -0400
parents 70355eedf57a
children 3f41b24ce657
files usr/src/cmd/svc/configd/restore_repository.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 "