mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 10:46:22 +00:00
Patch awaiting response when checking if supervisor0 network exists
Change-type: patch Signed-off-by: Miguel Casqueira <miguel@balena.io>
This commit is contained in:
parent
662b27c26d
commit
8b0c2347d8
@ -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…
Reference in New Issue
Block a user