diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-05-25 08:37:47 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-05-25 08:37:47 +0000 |
commit | 11e4520bf87137662d05badea0f997fe42c8d89a (patch) | |
tree | 0a3a3b1c7762b13f128f36a88e64254dde6a88b2 | |
parent | 9867e52c6bb4df6ecf05b134f605c303eee51e0b (diff) | |
download | drakx-11e4520bf87137662d05badea0f997fe42c8d89a.tar drakx-11e4520bf87137662d05badea0f997fe42c8d89a.tar.gz drakx-11e4520bf87137662d05badea0f997fe42c8d89a.tar.bz2 drakx-11e4520bf87137662d05badea0f997fe42c8d89a.tar.xz drakx-11e4520bf87137662d05badea0f997fe42c8d89a.zip |
(my_exit) introduce it for smoother messages
-rwxr-xr-x | globetrotter/make_live | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/globetrotter/make_live b/globetrotter/make_live index 6b53ebcad..d28b5dff6 100755 --- a/globetrotter/make_live +++ b/globetrotter/make_live @@ -103,6 +103,16 @@ sub formatdisk { run_program::get_stdout('service', 'usb', 'start'); } +sub my_exit { + my ($msg) = @_; + print "\n\n==============================================================\n\n"; + print $msg; + print "\n\nPress <RETURN> to return back to menu\n\n"; + print "==============================================================\n\n"; + <STDIN>; + exit(0); +} + sub find_partition { my ($label, @parts) = @_; find { member(fs::type2fs($_), qw(ext2 ext3)) && chomp_(`e2label /dev/$_->{device} 2>/dev/root`) eq $label } @parts; |