From 831b866b5c1b340422788745337ee2d8b3c06234 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Wed, 8 Apr 2015 21:51:11 +0200 Subject: clear console before message about media removal --- files/halt.local.CD | 3 ++- files/halt.local.DVD | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'files') diff --git a/files/halt.local.CD b/files/halt.local.CD index 6254c61..e27ad1d 100755 --- a/files/halt.local.CD +++ b/files/halt.local.CD @@ -17,7 +17,8 @@ my $f = detect_devices::tryOpen($device); ioctl($f, c::CDROM_LOCKDOOR(), 0); # unlock door ioctl($f, c::CDROMEJECT(), 0); -print "\n\nPlease press (or ) once the medium is removed.\n"; +system("clear"); +print "\n\n\nPlease press (or ) once the medium is removed.\n"; system("read < /dev/console"); ioctl($f, c::CDROMCLOSETRAY(), 0); diff --git a/files/halt.local.DVD b/files/halt.local.DVD index 6254c61..e27ad1d 100755 --- a/files/halt.local.DVD +++ b/files/halt.local.DVD @@ -17,7 +17,8 @@ my $f = detect_devices::tryOpen($device); ioctl($f, c::CDROM_LOCKDOOR(), 0); # unlock door ioctl($f, c::CDROMEJECT(), 0); -print "\n\nPlease press (or ) once the medium is removed.\n"; +system("clear"); +print "\n\n\nPlease press (or ) once the medium is removed.\n"; system("read < /dev/console"); ioctl($f, c::CDROMCLOSETRAY(), 0); -- cgit v1.2.1