summaryrefslogtreecommitdiff
path: root/rc/bin/inst
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
parent8fce6cb18bc8926d8845d528773b74cefb4e2202 (diff)
inst: post newfs fileservers under /srv/$fstype.newfs to avoid conflict with preexisting local filesystem
Diffstat (limited to 'rc/bin/inst')
-rwxr-xr-xrc/bin/inst/mountcwfs20
-rwxr-xr-xrc/bin/inst/mounthjfs18
2 files changed, 19 insertions, 19 deletions
diff --git a/rc/bin/inst/mountcwfs b/rc/bin/inst/mountcwfs
index 8a203ef53..6159d1ad2 100755
--- a/rc/bin/inst/mountcwfs
+++ b/rc/bin/inst/mountcwfs
@@ -2,7 +2,7 @@
# desc: choose and mount file system partition
-service=cwfs
+sname=cwfs.newfs
switch($1){
case go
@@ -56,13 +56,13 @@ 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){
if(! test -f /tmp/fsconfig){
{
- echo service $service
+ echo service cwfs
echo config $fs
echo noauth
echo filsys main c'('$fs')('$fsworm')'
@@ -76,7 +76,7 @@ case go
} >/tmp/fsconfig
}
echo 'Reaming filesystem'
- if(! $fstype -f $fs -C -c </tmp/fsconfig){
+ if(! $fstype -n $sname -f $fs -C -c </tmp/fsconfig){
mountfs=ready
export mountfs
exit oops
@@ -84,7 +84,7 @@ case go
}
if not {
echo 'Entering manual configuration mode. when done, type end'
- if(! $fstype -n $service -f $fs -c){
+ if(! $fstype -n $sname -f $fs -c){
mountfs=ready
export mountfs
exit oops
@@ -114,19 +114,19 @@ case go
}
echo noattach
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
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