ref: 7ee4ba15ca0c6b20b6dfca459ec2d40a458c8679
parent: a41cfaa9a7b51bb97012da0d77ebfec733acc973
author: qwx <qwx@sciops.net>
date: Sun Oct 2 06:17:43 EDT 2022
mk9: make this stupid script do a backup
--- a/bin/mk9
+++ b/bin/mk9
@@ -5,12 +5,18 @@
cp /386/9bootfat /n/9fat/
chmod +al /n/9fat/9bootfat
}
-if(test -f /n/9fat/9pc64)
+if(test -f /n/9fat/9pc64){
+ mv /n/9fat/9pc64^('' .bak)
cp /amd64/9pc64 /n/9fat/
-if(test -f /n/9fat/9pc)
+}
+if(test -f /n/9fat/9pc){
+ mv /n/9fat/9pc^('' .bak)
cp /386/9pc /n/9fat/
-if(test -f /n/9fat/9zynq)
+}
+if(test -f /n/9fat/9zynq){
+ mv /n/9fat/9zynq^('' .bak)
cp /arm/9zynq /n/9fat/
+}
rm /srv/dos
unmount /n/9fat
unmount /n/9