#!/bin/rc
-# desc: set system password for auth, invalidate nvram
+# desc: invalidate nvram
# prereq: systype copydist
-nvram=`{echo `{basename -d $fs}^/nvram}
+nvram=(/dev/sd*/nvram)
+nvram=$nvram(1)
-switch($1) {
-case checkdone
- if(! ~ $syst cpu || ! grep trust $nvram){
- authsetup=ready
- export authsetup
- }
+switch($1){
case go
-- echo
- echo 'Invalidate nvram'
- echo 'Setup keyfs and provide a password for the machine'
-- echo
-
- auth/keyfs
--
- if(! grep trust $nvram)
- echo 'trust, but verify' >$nvram >[2=1]
+ echo 'trust, but verify' >$nvram
echo
echo 'You will be asked to enter an authid, authdom, secstore key,'