summaryrefslogtreecommitdiffstats
path: root/x11/kde4-workspace/files/patch-kdeeject
blob: 8a5870ad25ffe30ac17951c07c3bddf76850a288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- kdesktop/kdeeject	Wed Dec 13 13:25:02 2000
+++ kdesktop/kdeeject.new	Fri Feb 23 02:59:54 2001
@@ -11,7 +11,8 @@
   # TODO: On bsd, it should be 'cdcontrol -f $1 eject'
   # Checking for stuff in the PATH is ugly with sh though.
   # I guess this is the reason for making this a kde app...
-  if eject $1; then
+  dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'`
+  if cdcontrol -f $dev eject; then
     # Success -> update icon
     dcop kdesktop default refreshIcons
     exit 0
OpenPOWER on IntegriCloud