Plan 9 from Bell Labs’s /n/sources/plan9/sys/lib/dist/pc/inst/configarch

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


#!/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
	}
}
		

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.