feat: Store config in RAM (#559)

This commit is contained in:
Kroese
2024-01-13 20:25:57 +01:00
committed by GitHub
parent 3a507f5bf6
commit 575da1f574
7 changed files with 31 additions and 28 deletions

View File

@@ -1,11 +1,11 @@
#!/usr/bin/env bash
set -Eeuo pipefail
[ -f "/run/qemu.end" ] && echo "QEMU is shutting down.." && exit 1
[ ! -f "/run/qemu.pid" ] && echo "QEMU is not running yet.." && exit 0
[ -f "/run/shm/qemu.end" ] && echo "QEMU is shutting down.." && exit 1
[ ! -f "/run/shm/qemu.pid" ] && echo "QEMU is not running yet.." && exit 0
file="/run/dsm.url"
address="/run/qemu.ip"
file="/run/shm/dsm.url"
address="/run/shm/qemu.ip"
[ ! -f "$file" ] && echo "DSM has not enabled networking yet.." && exit 1