summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/eject/files')
-rw-r--r--sys-apps/eject/files/digest-eject-2.1.43
-rw-r--r--sys-apps/eject/files/eject-2.1.4-toggle.patch40
2 files changed, 43 insertions, 0 deletions
diff --git a/sys-apps/eject/files/digest-eject-2.1.4 b/sys-apps/eject/files/digest-eject-2.1.4
new file mode 100644
index 000000000000..0e32186fcbfb
--- /dev/null
+++ b/sys-apps/eject/files/digest-eject-2.1.4
@@ -0,0 +1,3 @@
+MD5 6cb457857318f733177f0c3a780138da eject-2.1.4.tar.gz 101025
+RMD160 dbba76eb84aef1c8c367090389058b7afcc9ad48 eject-2.1.4.tar.gz 101025
+SHA256 317e27f763884148781be189a4c5c779f25b9812dee8f5ae2d0e5de30a4b65be eject-2.1.4.tar.gz 101025
diff --git a/sys-apps/eject/files/eject-2.1.4-toggle.patch b/sys-apps/eject/files/eject-2.1.4-toggle.patch
new file mode 100644
index 000000000000..cc3237f32c5a
--- /dev/null
+++ b/sys-apps/eject/files/eject-2.1.4-toggle.patch
@@ -0,0 +1,40 @@
+Patch by Stuart W. Finlayson
+
+http://bugs.gentoo.org/122256
+
+--- eject.c
++++ eject.c
+@@ -1225,16 +1225,6 @@
+ exit(0);
+ }
+
+- /* handle -T option */
+- if (T_option) {
+- if (v_option)
+- printf(_("%s: toggling tray\n"), programName);
+- fd = OpenDevice(deviceName);
+- ToggleTray(fd);
+- HandleXOption(deviceName);
+- exit(0);
+- }
+-
+ /* handle -X option */
+ if (X_option) {
+ if (v_option)
+@@ -1260,6 +1250,16 @@
+ if ((m_option != 1) && (pattern != 0))
+ UnmountDevices(pattern);
+
++ /* handle -T option */
++ if (T_option) {
++ if (v_option)
++ printf(_("%s: toggling tray\n"), programName);
++ fd = OpenDevice(deviceName);
++ ToggleTray(fd);
++ HandleXOption(deviceName);
++ exit(0);
++ }
++
+ /* handle -c option */
+ if (c_option) {
+ if (v_option)