handle SIGINT

This commit is contained in:
encrypt 2015-03-25 02:42:14 +01:00
parent 9f7f634933
commit 197a9c5708

View file

@ -1,5 +1,6 @@
#!/bin/env bash
conf=~/.etherswitch
switch_state=0
function check_fn {
@ -9,7 +10,10 @@ function check_fn {
}
}
source ~/.etherswitch
source $conf
# handle SIGTERM
trap 'exit' 15
if [ -z "$device" ]
then