forked from mirror/openwrt
wifi-scripts: ucode: fix starting without wpa_supplicant or hostapd
Fixes: 79f8a83eb9 ("wifi-scripts: ucode: unconditionally call hostapd/supplicant setup")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
886382ba25
commit
16ba3fc379
2 changed files with 2 additions and 2 deletions
|
|
@ -579,6 +579,6 @@ export function setup(data) {
|
|||
|
||||
if (ret)
|
||||
netifd.add_process('/usr/sbin/hostapd', ret.pid, true, true);
|
||||
else
|
||||
else if (fs.access('/usr/sbin/hostapd', 'x'))
|
||||
netifd.setup_failed('HOSTAPD_START_FAILED');
|
||||
};
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ export function setup(config, data) {
|
|||
|
||||
if (ret)
|
||||
netifd.add_process('/usr/sbin/wpa_supplicant', ret.pid, true, true);
|
||||
else
|
||||
else if (fs.access('/usr/sbin/wpa_supplicant', 'x'))
|
||||
netifd.setup_failed('SUPPLICANT_START_FAILED');
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue