mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Fix eject device.
Submitted by: Vivek Khera <khera@kciLink.com>
This commit is contained in:
parent
ee1b4beff5
commit
54fa8c1be3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35573
12
x11/kde4-baseapps/files/patch-kdeeject
Normal file
12
x11/kde4-baseapps/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
12
x11/kde4-runtime/files/patch-kdeeject
Normal file
12
x11/kde4-runtime/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
12
x11/kde4-workspace/files/patch-kdeeject
Normal file
12
x11/kde4-workspace/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
12
x11/kdebase2/files/patch-kdeeject
Normal file
12
x11/kdebase2/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
12
x11/kdebase3/files/patch-kdeeject
Normal file
12
x11/kdebase3/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
12
x11/kdebase4-runtime/files/patch-kdeeject
Normal file
12
x11/kdebase4-runtime/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
12
x11/kdebase4-workspace/files/patch-kdeeject
Normal file
12
x11/kdebase4-workspace/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
12
x11/kdebase4/files/patch-kdeeject
Normal file
12
x11/kdebase4/files/patch-kdeeject
Normal file
@ -0,0 +1,12 @@
|
||||
--- kdesktop/kdeeject.orig Fri Dec 1 15:25:26 2000
|
||||
+++ kdesktop/kdeeject Fri Dec 1 15:25:33 2000
|
||||
@@ -8,7 +8,8 @@
|
||||
# kmessage, to show a message box in case of error.
|
||||
#
|
||||
if [ $# = 1 -a "$1" != "--help" ]; then
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user