12 lines
394 B
Bash
Executable File
12 lines
394 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# eject_cd.sh - QiLinux eject CD script (called by install1.sh)
|
|
#
|
|
# Copyright (c) 2003-2004 by Silvan Calarco <silvan.calarco@qilinux.it>
|
|
# Copyright (c) 2003-2004 by Davide Madrisan <davide.madrisan@qilinux.it>
|
|
|
|
# FIXME: support SCSI cdroms
|
|
CDROMDEV=`cat /etc/mtab | sed -n '/ \/cdrom /{h;s/ .*//p}'`
|
|
# eject live CDROM
|
|
cdrecord -eject dev=ATAPI:$CDROMDEV 1>/dev/null 2>/dev/null
|