summaryrefslogtreecommitdiff
path: root/rc/bin/inst/nvramsetup
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-08-02 03:47:27 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-08-02 03:47:27 +0200
commit1c379c1667ce6d18849691c65b0960e9984e78a0 (patch)
tree10172e9473b2bb06fc7d75f7ac562c76345dd8d5 /rc/bin/inst/nvramsetup
parentc3c228a108bf4220e5471700029b713242a87eb2 (diff)
downloadplan9front-1c379c1667ce6d18849691c65b0960e9984e78a0.tar.xz
inst: remove systype step. system will be terminal with a disk after installation.
Diffstat (limited to 'rc/bin/inst/nvramsetup')
-rwxr-xr-xrc/bin/inst/nvramsetup51
1 files changed, 0 insertions, 51 deletions
diff --git a/rc/bin/inst/nvramsetup b/rc/bin/inst/nvramsetup
deleted file mode 100755
index 75f5385a3..000000000
--- a/rc/bin/inst/nvramsetup
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/rc
-
-# desc: invalidate nvram
-# prereq: systype copydist
-
-files=()
-for(i in /dev/sd*/nvram){
- if(test -f $i)
- files=($files $i)
-}
-
-switch($1){
-case checkdone checkready
- if(~ $#files 0 && ! ~ $syst cpu)
- nvramsetup=done
- if not {
- if(~ $#nvram 1 && grep -s trust $nvram)
- nvramsetup=done
- if not
- nvramsetup=ready
- }
- export nvramsetup
-
-case go
- echo
- echo 'Setup Plan 9 NVRAM configuration partition (nvram)'
- echo
-
- if(~ $#files 1)
- default=(-d $files)
- if not
- default=()
- prompt $default 'Nvram partition' $files
- nvram=$rd
- export nvram
-
- echo 'trust, but verify' >$nvram
-
- if(! ~ $syst cpu)
- exit
-
- echo
- echo 'You will be asked to enter an authid, authdom, secstore key,'
- echo 'and password upon next boot. The authid is the hostowner.'
- echo 'The authdom is the domain from your network configuration.'
- echo 'The secstore key and password should be a secret password'
- echo 'of eight characters or greater in length. On an auth server,'
- echo 'the password will be used to encrypt the user database'
- echo '/adm/keys'
- echo
-}