summaryrefslogtreecommitdiff
path: root/rc/bin/inst/mounthjfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-08-04 14:16:07 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-08-04 14:16:07 +0200
commitf777f7c4211100c0a0ae0c25f668523dc21a5677 (patch)
tree07bae3804c25e87a24efa69ae964a23e0d0e1507 /rc/bin/inst/mounthjfs
parent8fce6cb18bc8926d8845d528773b74cefb4e2202 (diff)
downloadplan9front-f777f7c4211100c0a0ae0c25f668523dc21a5677.tar.xz
inst: post newfs fileservers under /srv/$fstype.newfs to avoid conflict with preexisting local filesystem
Diffstat (limited to 'rc/bin/inst/mounthjfs')
-rwxr-xr-xrc/bin/inst/mounthjfs18
1 files changed, 9 insertions, 9 deletions
diff --git a/rc/bin/inst/mounthjfs b/rc/bin/inst/mounthjfs
index d0083978e..ba4816b4d 100755
--- a/rc/bin/inst/mounthjfs
+++ b/rc/bin/inst/mounthjfs
@@ -2,7 +2,7 @@
# desc: choose and mount file system partition
-service=hjfs
+sname=hjfs.newfs
switch($1){
case go
@@ -35,14 +35,14 @@ case go
log Starting $fstype file server for $fs
unmount /n/newfs >[2]/dev/null
- echo halt >>/srv/$service.cmd >[2]/dev/null
- rm -f /srv/$service /srv/$service.cmd
+ echo halt >>/srv/$sname.cmd >[2]/dev/null
+ rm -f /srv/$sname /srv/$sname.cmd
if(~ $ream yes){
- hjfs -n $service $fsflags -Srf $fs
+ hjfs -n $sname $fsflags -Srf $fs
}
if not {
- hjfs -n $service $fsflags -Sf $fs
+ hjfs -n $sname $fsflags -Sf $fs
}
log Configuring $fstype file server for $fs
@@ -56,19 +56,19 @@ case go
echo newuser upas +$user
echo echo off
sleep 2
- } >>/srv/$service.cmd
+ } >>/srv/$sname.cmd
log Mounting $fstype file server for $fs
- while(! logprog mount -c /srv/$service /n/newfs)
+ while(! logprog mount -c /srv/$sname /n/newfs)
sleep 2
if(! ~ $fsother ''){
log Mounting $fstype file server for $fsother
- logprog mount -c /srv/$service /n/other other
+ logprog mount -c /srv/$sname /n/other other
}
case checkready checkdone
if(! ~ $fstype '' && ~ $#fs 1 && test -f $fs){
- if(test -f /srv/$service && test -d /n/newfs/dist){
+ if(test -f /srv/$sname && test -d /n/newfs/dist){
mountfs=done
export mountfs
exit