summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-05-25 08:37:47 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-05-25 08:37:47 +0000
commit11e4520bf87137662d05badea0f997fe42c8d89a (patch)
tree0a3a3b1c7762b13f128f36a88e64254dde6a88b2
parent9867e52c6bb4df6ecf05b134f605c303eee51e0b (diff)
downloaddrakx-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-xglobetrotter/make_live10
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;