Cleanup --dry-run option code
[petitboot] / ui / twin / pbt-client.c
index 1170b34555664c449fdbb12f0c3cdaf19541cc9b..8d7991a415d9370e42205d83fc328a7b0b50d6ee 100644 (file)
@@ -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);