mirror of
https://github.com/dockur/windows.git
synced 2025-06-25 08:57:47 +00:00
fix: delay wsdd2 start
This commit is contained in:
parent
33bbf74055
commit
6118cc2351
@ -104,8 +104,7 @@ finish() {
|
||||
pid="/var/run/tpm.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
|
||||
pid="/var/run/wsdd.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
fKill "wsdd2"
|
||||
|
||||
fKill "smbd"
|
||||
|
||||
|
@ -129,8 +129,7 @@ if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
|
||||
fi
|
||||
else
|
||||
# Enable Web Service Discovery on Vista and up
|
||||
wsdd2 -i "$interface" -H "$hostname" -N "$hostname" &
|
||||
echo "$!" > /var/run/wsdd.pid
|
||||
(sleep 30; wsdd2 -i "$interface" -N "$hostname" -d) &
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user