mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
9fe622b885
QNAP's autorun.sh fires well before encrypted data volumes are unlocked, so the previous one-line entry that invoked start-pulse-agent.sh on the encrypted volume failed immediately — the wrapper did not exist yet, and the agent never started after reboot. Replace the entry with a backgrounded waiter that polls for the wrapper (every 2 s, up to 30 min) and execs it once the volume comes up. On unencrypted volumes the loop exits on the first check, so behaviour is unchanged. A timeout message is logged to /var/log/pulse-agent.log if the volume never unlocks within the window. The block is uninstall-safe: no internal blank lines, so the existing sed marker-to-blank-line range still removes it cleanly.