diff options
| author | Michael Brown | 2012-06-09 20:00:04 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-06-09 20:00:04 +0200 |
| commit | addf699c86ae18edd7de13433da78be926c22504 (patch) | |
| tree | 7c43a348e84cab90ab095ef6425d800beb17e1d7 /src/config | |
| parent | [tls] Mark security negotiation as a pending operation (diff) | |
| download | ipxe-addf699c86ae18edd7de13433da78be926c22504.tar.gz ipxe-addf699c86ae18edd7de13433da78be926c22504.tar.xz ipxe-addf699c86ae18edd7de13433da78be926c22504.zip | |
[cmdline] Add "sync" command
Add "sync" command (loosely based on the Unix "sync"), which will wait
for any pending operations to complete.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/config.c | 3 | ||||
| -rw-r--r-- | src/config/general.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c index eebd849b3..202da7266 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -241,6 +241,9 @@ REQUIRE_OBJECT ( reboot_cmd ); #ifdef CPUID_CMD REQUIRE_OBJECT ( cpuid_cmd ); #endif +#ifdef SYNC_CMD +REQUIRE_OBJECT ( sync_cmd ); +#endif /* * Drag in miscellaneous objects diff --git a/src/config/general.h b/src/config/general.h index 22a901d66..6fc39831f 100644 --- a/src/config/general.h +++ b/src/config/general.h @@ -117,6 +117,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define SANBOOT_CMD /* SAN boot commands */ #define MENU_CMD /* Menu commands */ #define LOGIN_CMD /* Login command */ +#define SYNC_CMD /* Sync command */ //#define TIME_CMD /* Time commands */ //#define DIGEST_CMD /* Image crypto digest commands */ //#define LOTEST_CMD /* Loopback testing commands */ |
