summaryrefslogtreecommitdiff
path: root/sys/lib/dist/pc/inst/configarch
blob: 61912bfdbd86f6f131c24f6a6d259aa6746606ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/rc

# desc: set source of distribution archives
# prereq: mountfs

switch($1) {
case go
	echo
	echo 'Will you be using a distribution archive on local media or the internet?'
	echo

	prompt 'Distribution is from' local internet
	archmedium=$rd
	export archmedium

	switch($archmedium) {
	case local
		exec configlocal go
	case internet
		exec configip go
	}

case checkdone
	switch($#archmedium) {
	case 1
		switch($archmedium) {
		case local
			exec configlocal checkdone
		case internet
			exec configip checkdone
		case *
			configarch=notdone
			export configarch
		}
	case *
		configarch=notdone
		export configarch
	}
}