diff options
author | Geoff Levand <geoff@infradead.org> | 2012-03-30 16:58:32 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2012-03-30 18:08:57 -0700 |
commit | 52b9db95764fcdee9195113d7df225634a19c9f4 (patch) | |
tree | c1d649ca1316a816430728ce097acb1806f2fad9 /ui/twin | |
parent | 45e253470f2cd7c6dfc38e7f533c62c454039873 (diff) | |
download | petitboot-52b9db95764fcdee9195113d7df225634a19c9f4.zip petitboot-52b9db95764fcdee9195113d7df225634a19c9f4.tar.gz |
Cleanup --dry-run option code
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'ui/twin')
-rw-r--r-- | ui/twin/pbt-client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/twin/pbt-client.c b/ui/twin/pbt-client.c index 1170b34..8d7991a 100644 --- a/ui/twin/pbt-client.c +++ b/ui/twin/pbt-client.c @@ -63,8 +63,7 @@ static int pbt_client_run_kexec(struct pbt_item *item) result = item->pbt_client->kexec_cb(item->pbt_client, opt_data); if (!result) { - //mvaddstr(1, 0, "system is going down now..."); - sleep(60); + sleep(item->pbt_client->dry_run ? 1 : 60); } pb_log("%s: failed: %s\n", __func__, opt_data->kd->image); |