Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 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:

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

share|improve this answer

Your Answer


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.