Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 system and network administrators.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .