Importing a script?
Hello. I have seen a template for a script which is supposed to mount a CD if not mounted, and eject it if it is mounted.
Code:
#!/bin/sh Here's the relevant fstab line: Code:
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0 Thanks in advance for your replies. |
Check out the documentation for /etc/fstab (man fstab). As far as I remember if you change "owner" to "user" anyone can mount your cdrom.
As for the script, it looks like it's taking an argument ($1) from another script or program that calls it (presumably xfce4-trigger-launcher ?). If you really want to use it, try changing "/cdwriter" to "/mnt/cdrom" and then type "<script_name> 1" to mount and "<script_name> 0" to eject the disc. Not sure if that gains you much though. John |
All times are GMT -5. The time now is 11:47 PM. |