feat: Add shared network folder (#157)

This commit is contained in:
Kroese
2024-02-07 23:48:38 +01:00
committed by GitHub
parent 42a5295306
commit 4e9ac3ef37
5 changed files with 78 additions and 3 deletions

View File

@@ -29,8 +29,8 @@ ready() {
if [ -f "$STORAGE/windows.old" ]; then
local last
local bios="Booting from Hard Disk"
last=$(grep "^B.*" "$QEMU_PTY" | tail -1)
local bios="Booting from Hard"
last=$(grep "^Booting.*" "$QEMU_PTY" | tail -1)
if [[ "${last,,}" == "${bios,,}"* ]]; then
return 0
fi
@@ -74,6 +74,9 @@ finish() {
pid="/var/run/tpm.pid"
[ -f "$pid" ] && pKill "$(<"$pid")"
fKill "wsdd"
fKill "smbd"
closeNetwork
sleep 0.5