service: don't wait for lease if DHCP client is started

This commit is contained in:
MaMe82
2018-10-29 13:52:10 +01:00
parent a4106f5d23
commit 7e1920ff96

View File

@@ -57,8 +57,7 @@ func (nim *NetworkInterfaceManager) StartDHCPClient() (err error) {
//We use the run command and allow dhcpcd to daemonize
proc := exec.Command("/sbin/dhcpcd", "-C", "wpa_supplicant", nameIface) //we avoid starting wpa_supplicant along with the dhcp client
proc := exec.Command("/sbin/dhcpcd", "-b", "-C", "wpa_supplicant", nameIface) //we avoid starting wpa_supplicant along with the dhcp client
dhcpcd_out, err := proc.CombinedOutput()
//err = proc.Run()
if err != nil { return err}