fix: clawd-rfkill.service failed due to systemd $ expansion

systemd expands $rf as env var (empty), breaking the inline script.
Move rfkill logic to standalone script to avoid escaping issues.
Also use quoted heredoc to prevent bash expansion in install.sh.

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-16 11:49:07 +08:00
parent 7a80c03028
commit dac68f78b4
2 changed files with 24 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
fix: kill NetworkManager's dnsmasq before starting our own
fix: clawd-rfkill.service failed due to systemd $ expansion
NetworkManager auto-starts its own dnsmasq when creating a hotspot,
which conflicts with our DNS-hijacking dnsmasq on the same interface.
Now kill ALL dnsmasq instances before starting ours.
systemd expands $rf as env var (empty), breaking the inline script.
Move rfkill logic to standalone script to avoid escaping issues.
Also use quoted heredoc to prevent bash expansion in install.sh.