trap SIGINTs for ensure_connected.sh

This commit is contained in:
2024-04-01 01:45:11 +01:00
parent c38eb9d6c3
commit f243d5fb19

View File

@ -2,6 +2,8 @@
# simple script to fix my broken wifi # simple script to fix my broken wifi
# it checks if wifi is connected at regular intervals, and if not, repeatedly attempts to connect # 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 the network & interface names from a file
source config.env source config.env