ref: 7216821eeb8ffb122afa68ef87186997682d4462
parent: 250e631e4c04b29437721154bc27785a70c2a28a
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri Apr 29 05:43:03 EDT 2011
cwfs: remove startup delay
--- a/sys/src/cmd/cwfs/config.c
+++ b/sys/src/cmd/cwfs/config.c
@@ -633,7 +633,6 @@
* part 4 -- initialize the devices
*/
for(fs=filsys; fs->name; fs++) {- delay(3000);
if(chatty)
print("sysinit: %s\n", fs->name);if(fs->flags & FREAM)
@@ -715,7 +714,7 @@
if (!blockok(worm, 0) || !blockok(worm, lim-1))
return 0;
delay(5*1000);
- if (userabort("sanity checks"))+ if(userabort("sanity checks"))return 0;
/* find worm's last valid block in case "worm" is an (f)worm */
@@ -834,10 +833,10 @@
*/
print("copied %lld blocks from %Z to %Z\n", (Wideoff)a, from, to); sync("wormcopy");- delay(2000);
+
print("looping; reset the machine at any time.\n");- for (; ; )
- continue; /* await reset */
+ for(;;)
+ delay(10000); /* await reset */
}
/* copy device from src to dest */
--
⑨