diff options
author | Thomas Backlund <tmb@mageia.org> | 2015-04-08 21:51:11 +0200 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-04-08 21:51:11 +0200 |
commit | 831b866b5c1b340422788745337ee2d8b3c06234 (patch) | |
tree | cef40af4780a6e53dfec1b3c112cd4c6633e318c | |
parent | 58f049ebbc29e2340b8a823ff49eeec766b303d9 (diff) | |
download | draklive-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-x | files/halt.local.CD | 3 | ||||
-rwxr-xr-x | files/halt.local.DVD | 3 |
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); |