So, I made a bash script that I need to be executed on booting, I created it in /etc/sbin/mount_folder.sh
Code:
sudo chmod +x mount_folder.sh
sudo ln -s mount_folder.sh /etc/init.d/mount_folder.sh
Then I try to:
Code:
sudo update-rc.d mount_folder.sh defaults
update-rc.d: /etc/init.d/mount_folder.sh: file does not exist
So I tried to execute it manually
Code:
sudo ./etc/init.d/mount_folder.sh
sudo ./etc/init.d/mount_folder.sh: command not found
Also:
Code:
ls -l mount_folder.sh
-rwxr-xr-x 1 root root 88 2011-08-22 04:05 mount_folder.sh
ls -l /etc/init.d/mount_folder.sh
lrwxrwxrwx 1 root root 15 2011-08-22 04:14 /etc/init.d/mount_folder.sh -> mount_folder.sh
Also, if I create the symbolic link in the same folder I can execute it normally
So, what's wrong?
Bookmarks