Well the title says it all, how can I auto-start a program before anything else and prevent any other program from running until a certain directory is mounted?
I am building a front-end program for the command "ncpmount" and it has to prevent any program from running until the user logs into their remote account and their files become mounted.
If you can use it,
ncpfs
is a filesystem module which allows you to mount a NetWare share using the Linux standardmount
utility. This would allow you to add a line to your/etc/fstab
which will mount the share as part of the system startup. You would then simply check to see if your mountpoint contains files to make sure that the mount worked successfully. Check with the Ubuntu documentation for detailed information on adding a line to/etc/fstab
.If you need to use
ncpmount
, bear in mind you will have to use the -P option, as the user will not be able to enter a password if one is required. That being said, you could use a rc.local file to run ncpmount as part of the system startup. I recommend looking to the Ubuntu documentation for detailed information about rc.local.Finally, after doing all that typing, I found this document on Novell's site. It's a walkthrough for setting up
/etc/fstab
to automatically mount a NetWare share on system startup. That may be all the guide you need.Sorry, I had prepared more helpful links for you, but I don't have enough reputation to post more than one.