fix: delay wsdd2 start

This commit is contained in:
Michal Lazo 2025-06-18 22:24:22 +02:00
parent 33bbf74055
commit 6118cc2351
2 changed files with 2 additions and 4 deletions

View File

@ -104,8 +104,7 @@ finish() {
pid="/var/run/tpm.pid" pid="/var/run/tpm.pid"
[ -s "$pid" ] && pKill "$(<"$pid")" [ -s "$pid" ] && pKill "$(<"$pid")"
pid="/var/run/wsdd.pid" fKill "wsdd2"
[ -s "$pid" ] && pKill "$(<"$pid")"
fKill "smbd" fKill "smbd"

View File

@ -129,8 +129,7 @@ if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
fi fi
else else
# Enable Web Service Discovery on Vista and up # Enable Web Service Discovery on Vista and up
wsdd2 -i "$interface" -H "$hostname" -N "$hostname" & (sleep 30; wsdd2 -i "$interface" -N "$hostname" -d) &
echo "$!" > /var/run/wsdd.pid
fi fi
return 0 return 0