PDA

View Full Version : [ubuntu] Script in /etc/init.d not running



bennis
June 26th, 2009, 08:55 PM
So i have a script that i'm trying to run on startup, but it isn't running. I can run it once i'm in ubuntu and it works fine, but for some reason it won't run when it's convenient. I've posted a copy of the script below.


umount /media/disk
mount /dev/sdc1 /media/disk-1
mount -o bind /media/disk-1/My\ Documents/My\ Pictures/ /home/ben/Pictures/
mount -o bind /media/disk-1/My\ Documents/My\ Videos/ /home/ben/Videos/

master_kernel
June 26th, 2009, 09:44 PM
Did you run '$ update-rc.d foo defaults'? (Where 'foo' is your script name)

bennis
June 27th, 2009, 06:32 AM
I have not. I shall look into this command. Thank you.