Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a laptop that is connected to my home network over wireless connection. The laptop runs a bit torrent client which downloads to a mounted NAS filesystem . I would like the laptop the run the bit torrent client on startup but this of course requires mounting the remote filesystem first. I tried placing an entry in /etc/fstab but this obviously fails because when mount occurs the laptop is not yet associated with the wireless network.

I would like to know what is the best practice in this situation. I would also like to support situations in which the specific wireless network is not available - in that case the client should not be started at startup.

One last thing - my distribution is Gentoo so a solution that takes advantage of /etc/cond.d/net configuration options is possible.

share|improve this question

migrated from serverfault.com Mar 24 '11 at 14:43

This question came from our site for professional system and network administrators.

1 Answer 1

Dependencies in init scripts can be configured with the depend directive, as specified in this documentation page:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4

When an init script has a dependency, it doesn't run until that dependency is satisfied.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.