From 11e4520bf87137662d05badea0f997fe42c8d89a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 25 May 2005 08:37:47 +0000 Subject: (my_exit) introduce it for smoother messages --- globetrotter/make_live | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'globetrotter/make_live') 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 to return back to menu\n\n"; + print "==============================================================\n\n"; + ; + 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; -- cgit v1.2.1