summaryrefslogtreecommitdiff
path: root/rc/bin/inst/mountdist
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-04-22 01:39:00 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-04-22 01:39:00 +0000
commitf246b097baec9ba853953073de3b47cdbe788063 (patch)
treefb9477afb5a59acd26c1b022497c18fcc18664fd /rc/bin/inst/mountdist
parent40dab914b7b92e75dd6297ab31c86bea033e8fa9 (diff)
downloadplan9front-f246b097baec9ba853953073de3b47cdbe788063.tar.xz
inst: default dist location to /, use old cache format by default... will change back when cwfs can autodetect it
Diffstat (limited to 'rc/bin/inst/mountdist')
-rwxr-xr-xrc/bin/inst/mountdist22
1 files changed, 2 insertions, 20 deletions
diff --git a/rc/bin/inst/mountdist b/rc/bin/inst/mountdist
index 26ef487f4..e90f4799f 100755
--- a/rc/bin/inst/mountdist
+++ b/rc/bin/inst/mountdist
@@ -111,32 +111,14 @@ case go
echo Which directory contains the distribution?
echo 'Any of the following will suffice (in order of preference):'
echo ' - the root directory of the cd image'
- echo ' - the directory containing plan9.iso'
- echo ' - the directory containing plan9.iso.bz2'
- echo 'Typing `browse'' will put you in a shell that you can use to'
- echo 'look for the directory.'
echo
first=no
}
- prompt -d browse 'Location of archives'
+ prompt -d $dir 'Location of archives'
dir=$rd
- if(~ $dir browse){
- echo This is a simple shell. Commands are:
- echo ' cd directory - change to directory'
- echo ' lc - list contents of current directory'
- echo ' exit - exit shell'
- echo
- echo 'Move to the directory containing the distribution'
- echo 'and then exit.'
- echo
- oifs=$ifs
- ifs=$nl
- dir=`{cdsh -r /n/distmedia}
- ifs=$oifs
- }
if(~ $#dir 0)
- dir=safdsfdsfdsf
+ dir=/
if(! ~ $#dir 1)
dir=$"dir
if(! havedist /n/distmedia/$dir)