summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/stmsboot/stmsboot.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/cmd/stmsboot/stmsboot.sh b/usr/src/cmd/stmsboot/stmsboot.sh
index 109eff2607..711d188a87 100644
--- a/usr/src/cmd/stmsboot/stmsboot.sh
+++ b/usr/src/cmd/stmsboot/stmsboot.sh
@@ -460,10 +460,8 @@ else
DRVLIST=$DRV
fi
-
-STMSPRIVS=`/usr/bin/ppriv $$ | $EGREP "E:.*all|E:.*sys_devices"`
-USERID=`id`
-if [ "$USERID" != "uid=0(root) gid=0(root)" ] -o [ "x$STMSPRIVS" == "x" ]; then
+USERID=`id | $EGREP "uid=0"`
+if [ -z "$USERID" ]; then
gettext "You must be super-user to run this script.\n" 1>&2
exit 1
fi