Loading init/builtins.c +4 −2 Original line number Original line Diff line number Diff line Loading @@ -799,6 +799,8 @@ int do_wait(int nargs, char **args) { { if (nargs == 2) { if (nargs == 2) { return wait_for_file(args[1], COMMAND_RETRY_TIMEOUT); return wait_for_file(args[1], COMMAND_RETRY_TIMEOUT); } } else if (nargs == 3) { return wait_for_file(args[1], atoi(args[2])); } else return -1; return -1; } } init/readme.txt +5 −0 Original line number Original line Diff line number Diff line Loading @@ -207,6 +207,11 @@ trigger <event> Trigger an event. Used to queue an action from another Trigger an event. Used to queue an action from another action. 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> ]* write <path> <string> [ <string> ]* Open the file at <path> and write one or more strings Open the file at <path> and write one or more strings to it with write(2) to it with write(2) Loading Loading
init/builtins.c +4 −2 Original line number Original line Diff line number Diff line Loading @@ -799,6 +799,8 @@ int do_wait(int nargs, char **args) { { if (nargs == 2) { if (nargs == 2) { return wait_for_file(args[1], COMMAND_RETRY_TIMEOUT); return wait_for_file(args[1], COMMAND_RETRY_TIMEOUT); } } else if (nargs == 3) { return wait_for_file(args[1], atoi(args[2])); } else return -1; return -1; } }
init/readme.txt +5 −0 Original line number Original line Diff line number Diff line Loading @@ -207,6 +207,11 @@ trigger <event> Trigger an event. Used to queue an action from another Trigger an event. Used to queue an action from another action. 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> ]* write <path> <string> [ <string> ]* Open the file at <path> and write one or more strings Open the file at <path> and write one or more strings to it with write(2) to it with write(2) Loading