From addf699c86ae18edd7de13433da78be926c22504 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 9 Jun 2012 19:00:04 +0100 Subject: [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 --- src/config/config.c | 3 +++ src/config/general.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src/config') 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 */ -- cgit v1.2.3-55-g7522