shithub: riscv

Download patch

ref: 6be977907bea1aea635d208ad619ced763e7a125
parent: 64d18a993fec0fc3d69e58514341d6afcea6c092
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Feb 14 16:51:26 EST 2024

fshalt: halt ext4srv as well

--- a/rc/bin/fshalt
+++ b/rc/bin/fshalt
@@ -30,6 +30,7 @@
 
 c=`{ls /srv/cwfs*cmd >[2]/dev/null}
 h=`{ls /srv/hjfs*cmd >[2]/dev/null}
+e=`{ls /srv/ext4*cmd >[2]/dev/null}
 s=`{awk '/^sd./ {print substr($1,3,1)}' '#S/sdctl' >[2]/dev/null}
 
 # for scram, don't scram other systems
@@ -65,9 +66,9 @@
 fn x {
 	echo
 	echo -n halting...
-	for(i in $c $h)
+	for(i in $c $h $e)
 		echo halt >>$i
-	for(i in $c $h){
+	for(i in $c $h $e){
 		echo -n $i...
 		while(test -e $i)
 			sleep 1