]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/inst/authsetup
add cpu server to the installer; add more files for cpu server; make sure they are...
[plan9front.git] / rc / bin / inst / authsetup
1 #!/bin/rc
2
3 # desc: set system password for auth, invalidate nvram
4 # prereq: systype copydist
5
6 nvram=`{echo `{basename -d $fs}^/nvram}
7
8 switch($1) {
9 case checkdone
10         if(! ~ $syst cpu || ! grep trust $nvram){
11                 authsetup=ready
12                 export authsetup
13         }
14 case go
15         echo
16         echo 'Setup keyfs and provide a password for the machine'
17         echo
18
19         auth/keyfs
20
21         if(! grep trust $nvram)
22                 echo 'trust, but verify' >$nvram >[2=1]
23
24         echo
25         echo 'You will be asked to enter an authid, authdom, secstore key,'
26         echo 'and password upon next boot. The authid is the hostowner.'
27         echo 'The authdom is the domain from your network configuration.'
28         echo 'The secstore key and password should be a secret password'
29         echo 'of eight characters or greater in length. Remember the'
30         echo 'password, you will need to use it again when creating the'
31         echo 'bootes user on the auth server.'
32         echo
33
34         authsetup=done
35         export authsetup
36 }