summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-04-08 21:51:11 +0200
committerThomas Backlund <tmb@mageia.org>2015-04-08 21:51:11 +0200
commit831b866b5c1b340422788745337ee2d8b3c06234 (patch)
treecef40af4780a6e53dfec1b3c112cd4c6633e318c
parent58f049ebbc29e2340b8a823ff49eeec766b303d9 (diff)
downloaddraklive-config-831b866b5c1b340422788745337ee2d8b3c06234.tar
draklive-config-831b866b5c1b340422788745337ee2d8b3c06234.tar.gz
draklive-config-831b866b5c1b340422788745337ee2d8b3c06234.tar.bz2
draklive-config-831b866b5c1b340422788745337ee2d8b3c06234.tar.xz
draklive-config-831b866b5c1b340422788745337ee2d8b3c06234.zip
clear console before message about media removal
-rwxr-xr-xfiles/halt.local.CD3
-rwxr-xr-xfiles/halt.local.DVD3
2 files changed, 4 insertions, 2 deletions
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 <Enter> (or <CTRL><J>) once the medium is removed.\n";
+system("clear");
+print "\n\n\nPlease press <Enter> (or <CTRL><J>) 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 <Enter> (or <CTRL><J>) once the medium is removed.\n";
+system("clear");
+print "\n\n\nPlease press <Enter> (or <CTRL><J>) once the medium is removed.\n";
system("read < /dev/console");
ioctl($f, c::CDROMCLOSETRAY(), 0);