Can't get script to run from symlink in etc/init.d
Hello folks
Got a problem with a script that loads a couple of kernel modules for scsi emulation for my cd/dvd (literally two lines). The script runs fine from its home in /usr/local/bin but when I create a symbolic link in /etc/init.d it refuses to recognise the file exists: turknet01:/etc/init.d# ./cd-scsi-loader console bash: ./cd-scsi-loader: No such file or directory It refuses to recgnise the file under update-rc.d also. The original file has rwx permissions under root, r-- for all others. Anyone have any ideas? Sure this is a simple fix for some of you gurus out there;) |
From a console window, do 'ls -l /etc/init.d/cd-scsi-loader'.
What's the output of ls? |
Quote:
Code:
## ## End Default Options ## Code:
## ## Start Default Options ## |
To reply to both of you...
Output of ls -l ...: Code:
lrwxrwxrwx 1 root root 28 2006-12-03 17:38 /etc/init.d/cd-scsi-loader -> usr/local/bin/cd-scsi-loader HappyTux, I already edited /boot/grub/menu.lst with the ide-scsi flags for my two drives. It seems to work OK except for one of the driver modules that isn't loaded on boot automatically: Code:
/sbin/insmod sg Thanks in advance for any ideas G. |
Quote:
|
That seems to have fixed it.
Thanks a lot for your help! |
All times are GMT -5. The time now is 12:10 AM. |