Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 am using manual configuration to connect to my WLAN. In my wpa_supplicant.conf, I have something like this:


and then, in my /etc/network/interfaces I have

auto wlan0
    iface wlan0 inet dhcp

When I start my laptop, the connection to my WLAN is established automatically. The problem is, it takes sometimes 10 - 15 seconds until the connection is established and the whole boot process is blocked and waiting.

I was wondering whether it is possible to configure, so that the connection is established in the background, so that the boot process can go on booting, without waiting for the WLAN to be ready.

I am using Debian Wheezy

share|improve this question
The hard way you could trace with find and grep your initialization scripts looking for ifconfig or ifup calls and put an ampersand glyph in the call that is blocking you. – uprego Dec 12 '13 at 16:41
up vote 2 down vote accepted

This is probably your dhcp client blocking until it the interface has an address. The exact answer will depend on what init system you use and what dhcp client you use. For dhcpcd, for example, you want to make sure the init script that launches it is called with the -b flag (background immediately), and if it has the -w flag (wait), to erase it.

One caveat is that if you have services starting after this interface is launched that depend on it having an IP address, this could cause problems if they start in the few seconds before an IP is secured. Keep that in mind if you encounter any oddities.

share|improve this answer
I am using dhclient, but since my wlan interface is started automatically during boot (by init scripts) I don't know how to modify the parameters with which it is being run – Martin Vegter Dec 13 '13 at 10:23
If you use svsV init or OpenRC the init script is in /etc/init.d and would be called dhclient or dhcp or dhcpcd depending on distro. If you use systemd init it might be under /etc/systemd and have a name like dhclient@wlan0. – casey Dec 13 '13 at 10:30

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.