summaryrefslogtreecommitdiff
path: root/rc/bin/fshalt
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-08-21 19:40:29 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-08-21 19:40:29 +0200
commit3db2012126385e19923ecf742315b62c0b4b4ff8 (patch)
treeb46aa7e0d224a9390675a5493060d9df1a5c97f1 /rc/bin/fshalt
parent985b2457cda207c2c65edeb647aedbb6e92dac46 (diff)
fshalt: remove kfs support
Diffstat (limited to 'rc/bin/fshalt')
-rwxr-xr-xrc/bin/fshalt24
1 files changed, 0 insertions, 24 deletions
diff --git a/rc/bin/fshalt b/rc/bin/fshalt
index 483151449..2fed2465a 100755
--- a/rc/bin/fshalt
+++ b/rc/bin/fshalt
@@ -22,21 +22,9 @@ unmount /mnt/consoles >[2]/dev/null
kill consolefs | rc # don't compete with /mnt/consoles
sleep 1
-k=`{ls /srv/kfs*cmd >[2]/dev/null|sort -r}
c=`{ls /srv/cwfs*cmd >[2]/dev/null}
h=`{ls /srv/hjfs*cmd >[2]/dev/null}
-for (i in $k){
- echo -n $i...
- switch($i){
- case /srv/kfs.cmd
- disk/kfscmd sync
- case *
- disk/kfscmd -n `{echo $i | sed -n 's%/srv/kfs.(.*).cmd%\1%p'} sync
- }
- sleep 2
-}
-
# for scram, don't scram other systems
bind -b '#P' /dev
if(! ~ $reboot yes){
@@ -49,10 +37,7 @@ if(! ~ $reboot yes){
# halting (binaries we run can't be on the fs we're halting)
ramfs
builtin cd /tmp
-cp /bin/dial/expect /tmp
-cp /bin/disk/kfscmd /tmp
cp /bin/echo /tmp
-cp /bin/iostats /tmp
mkdir /tmp/lib
cp /rc/lib/rcmain /tmp/lib
cp /bin/ns /tmp
@@ -68,15 +53,6 @@ bind /tmp /bin
fn x {
echo
echo -n halting...
- for (i in $k){
- echo -n $i...
- switch($i){
- case /srv/kfs.cmd
- kfscmd halt
- case *
- kfscmd -n `{echo $i | sed -n 's%/srv/kfs.(.*).cmd%\1%p'} halt
- }
- }
for (i in $c){
echo -n $i...
echo halt >>$i