I need to take a certain action during startup after all the normal startup actions have completed (filesystems mounted, network started up, etc.). I know that etc/init.d/rc.local is executed during startup, but I don't know at what point in the sequence. Is there a description of just what is done during startup?
A bit of context: I have a problem with a certain cifs mount not getting done during startup because the device is not yet connected. It appears that it needs to be tried repeatedly until it works. I've tried various additions to the fstab entry, but none of them so far have worked. So I'd like to try a different approach, using the following script or something like it:
The idea is to retry the mount every 2 seconds until it succeeds.
A bit of context: I have a problem with a certain cifs mount not getting done during startup because the device is not yet connected. It appears that it needs to be tried repeatedly until it works. I've tried various additions to the fstab entry, but none of them so far have worked. So I'd like to try a different approach, using the following script or something like it:
Code:
until grep /proc/mounts mediavault; do mount /media/mediavault sleep 2 done
Comment