From 943287c6a377d5a9b0c5b6ec53176763b05b7f17 Mon Sep 17 00:00:00 2001 From: Igor Kozhukhov Date: Tue, 29 May 2012 11:05:54 -0400 Subject: 2785 /lib/svc/bin/restore_repository incorrectly uses -eq on strings Reviewed by: Richard Lowe Reviewed by: Garrett D'Amore Approved by: Dan McDonald --- usr/src/cmd/svc/configd/restore_repository.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/src/cmd/svc') diff --git a/usr/src/cmd/svc/configd/restore_repository.sh b/usr/src/cmd/svc/configd/restore_repository.sh index 3d84c68c21..0c8e4bab54 100644 --- a/usr/src/cmd/svc/configd/restore_repository.sh +++ b/usr/src/cmd/svc/configd/restore_repository.sh @@ -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 @@ this script to restore backup copies of the smf(5) repository. 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 " -- cgit v1.2.3