From 1c70a5c442a7cc4ee947f4023c35c5ca9f612991 Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 7 Jan 2025 20:45:20 +0100 Subject: [PATCH] feat: stop syncthing if not connected to wifi. --- src/etc/udev/rules.d/99-syncthing.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/udev/rules.d/99-syncthing.rules b/src/etc/udev/rules.d/99-syncthing.rules index 800679e..e458690 100644 --- a/src/etc/udev/rules.d/99-syncthing.rules +++ b/src/etc/udev/rules.d/99-syncthing.rules @@ -1,2 +1,2 @@ -KERNEL=="eth*", ACTION=="add", RUN+="/usr/local/syncthing/start.sh" KERNEL=="wlan*", ACTION=="add", RUN+="/usr/local/syncthing/start.sh" +KERNEL=="wlan*", ACTION=="remove", RUN+="/usr/local/syncthing/stop.sh"