summaryrefslogtreecommitdiffstats
path: root/rescue/partimage_whole_disk
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-10-20 18:14:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-10-20 18:14:41 +0000
commit4e42e65e5bb0837e507504d1792387a5b0f52383 (patch)
tree48cb2f688ea42917cb47a858eac0db07eef0682e /rescue/partimage_whole_disk
parentc98d7b8b2de6808503ced96544c521fc25c2dd6a (diff)
downloaddrakx-4e42e65e5bb0837e507504d1792387a5b0f52383.tar
drakx-4e42e65e5bb0837e507504d1792387a5b0f52383.tar.gz
drakx-4e42e65e5bb0837e507504d1792387a5b0f52383.tar.bz2
drakx-4e42e65e5bb0837e507504d1792387a5b0f52383.tar.xz
drakx-4e42e65e5bb0837e507504d1792387a5b0f52383.zip
reboot if things went nicely
Diffstat (limited to 'rescue/partimage_whole_disk')
-rwxr-xr-xrescue/partimage_whole_disk5
1 files changed, 5 insertions, 0 deletions
diff --git a/rescue/partimage_whole_disk b/rescue/partimage_whole_disk
index 3649c70f1..c332df838 100755
--- a/rescue/partimage_whole_disk
+++ b/rescue/partimage_whole_disk
@@ -215,6 +215,11 @@ sub rest_all {
}
run_or_die('install_bootloader', '--auto');
+
+ print "\n", "Your system is ready, press enter to reboot (Y/n) ";
+ if (<STDIN> !~ /n/i) {
+ run_program::run('reboot');
+ }
}
sub lst_fields() { qw(device size fs_type saved) }