aboutsummaryrefslogtreecommitdiffstats
path: root/init/readme.txt
diff options
context:
space:
mode:
authorPatrick McCormick <patrickX.m.mccormick@intel.com>2011-02-04 10:51:39 -0800
committerAndrew Boie <andrew.p.boie@intel.com>2012-07-24 10:31:49 -0700
commit96d0a4dda81aaff3f72b9690d88eb40387ee9630 (patch)
tree64311abfb0a6d94518d68a8b923ff0a0d1d08f9b /init/readme.txt
parentec7d9dc713322bd41b1e348c0ea3b1304a13dba9 (diff)
downloadsystem_core-96d0a4dda81aaff3f72b9690d88eb40387ee9630.tar.gz
system_core-96d0a4dda81aaff3f72b9690d88eb40387ee9630.tar.bz2
system_core-96d0a4dda81aaff3f72b9690d88eb40387ee9630.zip
Extend and document the "wait" command
The wait command was currently implemented but undocumented and only used internally. This change adds a second option toi (optionally) override the default timeout of 5 seconds. The wait command can be used to wait for a file to appear during the boot process, for example a disk or other device, and is a better alternative than an unconditional sleep. Change-Id: Ia11d8419c0ea84deec0e1bf5adfca5bc76ff38b7 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Diffstat (limited to 'init/readme.txt')
-rw-r--r--init/readme.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/init/readme.txt b/init/readme.txt
index df524a6d..fe0d15d0 100644
--- a/init/readme.txt
+++ b/init/readme.txt
@@ -207,6 +207,11 @@ trigger <event>
Trigger an event. Used to queue an action from another
action.
+wait <path> [ <timeout> ]
+ Poll for the existence of the given file and return when found,
+ or the timeout has been reached. If timeout is not specified it
+ currently defaults to five seconds.
+
write <path> <string> [ <string> ]*
Open the file at <path> and write one or more strings
to it with write(2)