From f243d5fb196785e64aa972cae357a30dae2b0abb Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 1 Apr 2024 01:45:11 +0100 Subject: [PATCH] trap SIGINTs for ensure_connected.sh --- ensure_connected.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ensure_connected.sh b/ensure_connected.sh index ff27a1d..abc08b0 100755 --- a/ensure_connected.sh +++ b/ensure_connected.sh @@ -2,6 +2,8 @@ # simple script to fix my broken wifi # it checks if wifi is connected at regular intervals, and if not, repeatedly attempts to connect +trap "echo 'SIGINT received, terminating'; exit" SIGINT + # source the network & interface names from a file source config.env