Active Topics

 


Reply
Thread Tools
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#1
once mounted the cdrom have no eject function
so:

from debian.org site i downloaded eject
for this program credits to
Copyright (C) 1994-2005 Jeff Tranter (tranter@pobox.com)
Copyright (C) 2004, 2005 Frank Lichtenheld (djpig@debian.org)

I've wrote little script for more convenience
and I add a shortcut to this
all files as .zip attachment to this post

eject program go to /usr/bin/
eject.desktop must be placed in /usr/share/applications/hildon/
eject.png must be placed in /opt/usr/share/icons/hicolor/64x64/apps/
eject.sh must be in /home/user/
eject.sudoers in /etc/sudoers.d/


after copy eject.sudoers file a command must be runed for update sudoers
as root run
Code:
update-sudoers
create a folder /media/cdrom
edit the desktop for adding eject icon ( optional )
make eject and eject.sh runnable
and reboot for update seceen's icons

BONUS first run the script will mount the cdrom

hope not forget anything ...
Attached Files
File Type: zip eject.zip (12.0 KB, 63 views)

Last edited by blue_led; 2011-11-11 at 22:45.
 

The Following 4 Users Say Thank You to blue_led For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#2
Unfortunately, it isn't working for me. I've "debugegd" it as extensively, as my limited skills permit, and conclusions are as follows:

1."eject" itself works fine. If I try commands from guts of eject.sh, everything works like charm.

2. eject.sh does nothing on my device - literally, nothing. Upon executing it, new terminal line opens immediately - no error message, no anything. Just nothing.

3. For sure it isn't permission problem - I've added it to /etc/sudoers.d, and of course chmod +x eject and eject.sh, properly. Messing with "eject" directly, even as user (with sudo) works. To filter out permissions, I've tried eject.sh as root (although, error about permissions would be given, even for user).

4. I've examined eject.sh for quite long time, but I wasn't able to trace any bugs. Tried some crazy ideas, like removing space from shebang. Still, effects are same - script does literally nothing.
---

Are You sure, that eject.sh isn't written for bash, instead of busybox (ash)?

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:38.