trap SIGINTs for ensure_connected.sh
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user