shithub: riscv

ref: 1bc10a7c9397d6d10aa0b397212f59a83e4cd546
dir: /rc/bin/inst/systype/

View raw version
#!/bin/rc

# desc: choose system type

switch($1){
case checkdone
	if(~ $#syst 1 && ~ $syst cpu terminal)
		systype=done
	if not
		systype=ready
	export systype
	if(~ $syst terminal)
		tasks=`{echo $tasks | sed 's/authsetup//g'}
	export tasks
case go
	echo

	options=(terminal cpu)
	
	prompt -d terminal 'System type' $options
	syst=$rd
	export syst
}