mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-03-11 15:04:18 +00:00
Merge pull request #1701 from balena-os/patch-supervisor-network-check
Patch awaiting response when checking if supervisor0 network exists
This commit is contained in:
commit
34a702e4bb
@ -70,7 +70,7 @@ export async function remove(network: Network) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function supervisorNetworkReady(): Promise<boolean> {
|
export async function supervisorNetworkReady(): Promise<boolean> {
|
||||||
const networkExists = exists(
|
const networkExists = await exists(
|
||||||
`/sys/class/net/${constants.supervisorNetworkInterface}`,
|
`/sys/class/net/${constants.supervisorNetworkInterface}`,
|
||||||
);
|
);
|
||||||
if (!networkExists) {
|
if (!networkExists) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user