diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-02 22:10:49 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-11-02 22:10:49 +0000 |
commit | 8cf8bc8ec881760055c73315b7e8c52f0962c492 (patch) | |
tree | 917056a3ce6f26be5eccdc13188fd89a5e02ac41 /files/halt.local.DVD | |
parent | 8a7411fb876243d1c2eadc8917f4352c78bd180f (diff) | |
parent | 4188ede639da7fbb198a56869283770b63db947d (diff) | |
download | draklive-config-8cf8bc8ec881760055c73315b7e8c52f0962c492.tar draklive-config-8cf8bc8ec881760055c73315b7e8c52f0962c492.tar.gz draklive-config-8cf8bc8ec881760055c73315b7e8c52f0962c492.tar.bz2 draklive-config-8cf8bc8ec881760055c73315b7e8c52f0962c492.tar.xz draklive-config-8cf8bc8ec881760055c73315b7e8c52f0962c492.zip |
Switch to using draklive2 (merge branch 'user/martinw/use-grub2')
Diffstat (limited to 'files/halt.local.DVD')
-rwxr-xr-x | files/halt.local.DVD | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/files/halt.local.DVD b/files/halt.local.DVD deleted file mode 100755 index e27ad1d..0000000 --- a/files/halt.local.DVD +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/perl - -use lib qw(/usr/lib/libDrakX); -use MDK::Common; -use detect_devices; -use c; - -my ($device) = cat_("/proc/mounts") =~ m!(/dev/\S+)\s+/live/media\s+iso9660!; -$device or exit; - -# try to put halt/reboot in cache, if not called directly from them -# mount is also needed by end of /etc/init.d/halt -system("$_ --help &>/dev/null") foreach qw(halt mount reboot); - -my $f = detect_devices::tryOpen($device); -# see openCdromTray() from install::any -ioctl($f, c::CDROM_LOCKDOOR(), 0); # unlock door -ioctl($f, c::CDROMEJECT(), 0); - -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); |