# HG changeset patch # User Igor Kozhukhov # Date 1338303954 14400 # Node ID b83bad61dfe12a9dc90dabfd85e48667604b4be3 # Parent 70355eedf57a6dd0f267b0a528eb2e3823be6db0 2785 /lib/svc/bin/restore_repository incorrectly uses -eq on strings Reviewed by: Richard Lowe Reviewed by: Garrett D'Amore Approved by: Dan McDonald diff -r 70355eedf57a -r b83bad61dfe1 usr/src/cmd/svc/configd/restore_repository.sh --- 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 "