app: Use service(8) instead of systemctl to start wpa_supplicant
The target system uses sysvinit-style service management, not systemd.
This commit is contained in:
parent
d57c08a6c4
commit
249217d4ad
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ func ensureUplink(iface string) {
|
|||
log.Printf("No DHCP address on %s, starting wpa_supplicant", iface)
|
||||
}
|
||||
|
||||
if out, err := exec.Command("systemctl", "start", "wpa_supplicant").CombinedOutput(); err != nil {
|
||||
if out, err := exec.Command("service", "wpa_supplicant", "start").CombinedOutput(); err != nil {
|
||||
log.Printf("Failed to start wpa_supplicant: %v: %s", err, strings.TrimSpace(string(out)))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue