CD autorun scripts for FC3 or any other new linux distros

Status
Not open for further replies.

cpraveen84

Beta member
Messages
1
Hello group,

I have a problem creating a CD autorun script for linux. I have created a sample autorun file and placed it on the CD for testing. The contents of the file are as follows :

#!/bin/sh
dir=$(echo $0 |sed 's/autorun//')
cd $dir
fullpath=$(pwd)
exec konqueror $fullpath/default.html

But this script is not exectuted once i insert a CD into the drive. However, if i run the script from the terminal it works just fine.

I need to tackle this situation and need help.

Thank All of You.
 
change the /etc/fstab file, I believe you can set it to automatically mount the cdrom when a cd is inserted, what happens after that will depend on what type of file it is, senidng it to be listed in a file manager like konqueror shouldnt be too tough-----see the kwik disk source code
 
Status
Not open for further replies.
Back
Top Bottom