openbsd-ports/x11/kde/base3/patches/patch-kdesktop_kdeeject
2004-02-03 02:22:28 +00:00

14 lines
531 B
Plaintext

$OpenBSD: patch-kdesktop_kdeeject,v 1.1 2004/02/03 02:22:28 espie Exp $
--- kdesktop/kdeeject.orig 2004-02-03 03:11:46.000000000 +0100
+++ kdesktop/kdeeject 2004-02-03 03:17:21.000000000 +0100
@@ -9,6 +9,9 @@ if [ $# = 1 -a "$1" != "--help" ]; then
# I guess this is the reason for making this a kde app...
OS=`uname -s`
case "$OS" in
+ OpenBSD)
+ cdio -f $1 eject >/dev/null 2>&1
+ ;;
*BSD)
dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'`
cdcontrol -f $dev eject >/dev/null 2>&1