mirror of
https://github.com/RoganDawes/P4wnP1_aloa.git
synced 2025-11-15 08:32:06 +01:00
service: don't wait for lease if DHCP client is started
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user