diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-03 04:53:43 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-03 04:53:43 +0000 |
commit | 4875561fdbca1e02b0c1a4e02f5c37abf66d6faa (patch) | |
tree | 15e70c9d62428f4a9dc3ce15599e7b9c231ad2b5 /sys/lib/dist.old/pc/inst/moveoldfs | |
parent | 4e919b23a1041e8d45d1e50b265b2b86f3a9b00c (diff) |
remove sys/lib/dist.old
Diffstat (limited to 'sys/lib/dist.old/pc/inst/moveoldfs')
-rwxr-xr-x | sys/lib/dist.old/pc/inst/moveoldfs | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/sys/lib/dist.old/pc/inst/moveoldfs b/sys/lib/dist.old/pc/inst/moveoldfs deleted file mode 100755 index 819beeb39..000000000 --- a/sys/lib/dist.old/pc/inst/moveoldfs +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/rc - -# desc: move an old third edition plan 9 file system out of the way -# prereq: mountfs - -rootfiles=(\ - 386\ - 68000\ - 68020\ - LICENSE\ - NOTICE\ - acme\ - adm\ - alpha\ - arm\ - cron\ - dist\ - fd\ - lib\ - lp\ - mail\ - mips\ - mnt\ - n\ - power\ - rc\ - sparc\ - sys\ - tmp\ - usr/glenda\ - wrap\ -) - -switch($1){ -case checkready - if(! test -d /n/kfs/wrap){ - moveoldfs=done - export moveoldfs - } - -case go - if(test -d /n/kfs/wrap){ - echo 'You have a Third Edition Plan 9 installation on '^$fs^'.' - echo 'We need to move the old file system out of the way (into /3e)' - echo 'in order to continue.' - echo - prompt 'Move old file system' y n - switch($rd){ - case y - kname=`{kfsname $fs} - log Moving old Plan 9 installation into /3e on kfs - logprog disk/kfscmd -n$kname 'create /3e sys sys 555 d' >>[2]/srv/log - logprog disk/kfscmd -n$kname 'create /3e/usr sys sys 555 d' >>[2]/srv/log - for(i in $rootfiles) - if(test -e /n/kfs/$i) - logprog disk/kfscmd -n$kname 'rename /'^$i^' /3e/'^$i - # copy extant /adm/users in case there have been modifications - logprog disk/kfscmd -n$kname 'create /adm adm adm 555 d' >>[2]/srv/log - logprog cp /n/kfs/3e/adm/users /n/kfs/adm/users >>[2]/srv/log - - case n - echo 'Okay, but we can''t continue.' - echo - } - } - -case checkdone - if(test -d /n/kfs/wrap){ - moveoldfs=notdone - export moveoldfs - } -} |