summaryrefslogtreecommitdiff
path: root/rc/bin/inst/mountcwfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-03 08:53:59 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-03 08:53:59 +0000
commitf5685a313d24d7e4cb4d3804dddda38020cbae9a (patch)
treeea3a24597d473c0da5c0adfe740a8fb309c15f38 /rc/bin/inst/mountcwfs
parent4875561fdbca1e02b0c1a4e02f5c37abf66d6faa (diff)
downloadplan9front-f5685a313d24d7e4cb4d3804dddda38020cbae9a.tar.xz
include hg repository in /dist/plan9front and install it
Diffstat (limited to 'rc/bin/inst/mountcwfs')
-rw-r--r--rc/bin/inst/mountcwfs21
1 files changed, 8 insertions, 13 deletions
diff --git a/rc/bin/inst/mountcwfs b/rc/bin/inst/mountcwfs
index afbe014a3..b906f2e19 100644
--- a/rc/bin/inst/mountcwfs
+++ b/rc/bin/inst/mountcwfs
@@ -98,6 +98,7 @@ case go
echo create /adm adm adm 775 d
echo create /adm/users adm adm 664
echo create /usr sys sys 775 d
+ echo create /dist sys sys 775 d
echo newuser $user
echo newuser sys +$user
echo newuser adm +$user
@@ -106,6 +107,7 @@ case go
echo create /usr sys sys 775 d
echo create /usr/$user $user $user 775 d
echo create /usr/$user/tmp $user $user 750 d
+ echo create /dist sys sys 775 d
echo cfs main
}
} >>/srv/cwfs.cmd
@@ -117,22 +119,15 @@ case go
export mountfs
exit
}
+ if(! ~ $fsother ''){
+ log Mounting $fstype file server for $fsother
+ if(logprog mount -c /srv/cwfs /n/other other)
+ bind -qc /n/other/dist /n/newfs/dist
+ }
case checkready checkdone
if(! ~ $fstype '' && ~ $#fs 1 && test -f $fs){
- if(! test -f /srv/cwfs){
- logprog $fstype -f $fs
- echo allow >>/srv/cwfs.cmd >>[2]/srv/log
- }
- if(test -f /srv/cwfs && ! test -f /n/newfs/adm/users){
- log Mounting $fstype file server for $fs
- if(! logprog mount -c /srv/cwfs /n/newfs){
- mountfs=ready
- export mountfs
- exit
- }
- }
- if(test -f /srv/cwfs && test -f /n/newfs/adm/users){
+ if(test -f /srv/cwfs && test -d /n/newfs/dist){
mountfs=done
export mountfs
exit