summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
authorIgor Kozhukhov <igor.kozhukhov@nexenta.com>2012-05-29 11:05:54 -0400
committerIgor Kozhukhov <igor.kozhukhov@nexenta.com>2012-05-29 11:05:54 -0400
commit943287c6a377d5a9b0c5b6ec53176763b05b7f17 (patch)
treee53d94dfd8720f086dc73b12bdd2b51305896c40 /usr/src/cmd
parenta58a7fedf7a57cbc5bdaa455cf9134f7a84bbe8f (diff)
downloadillumos-joyent-943287c6a377d5a9b0c5b6ec53176763b05b7f17.tar.gz
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>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/svc/configd/restore_repository.sh3
1 files changed, 2 insertions, 1 deletions
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 "