From 94895130d192859f0778db320b9834c5d35c6d46 Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 26 Feb 2018 21:08:01 +0100 Subject: added check of operation state for wifi.sh; fixed typo in eth.sh --- scripts/eth.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/eth.sh') diff --git a/scripts/eth.sh b/scripts/eth.sh index 2fb8b30..f4c1388 100755 --- a/scripts/eth.sh +++ b/scripts/eth.sh @@ -6,7 +6,7 @@ if="${BLOCK_INSTANCE:-enp0s25}" [[ ! -d /sys/class/net/${if} ]] && exit 0 # operstate: down, up -[[ "$(cat /sys/class/net/$IF/operstate)" = 'down' ]] && exit 0 +[[ "$(cat /sys/class/net/$if/operstate)" = 'down' ]] && exit 0 # first ipv4 addr IP_ADDR=$(ip address show $if | grep 'inet ' | sed 's/\s\+inet \([0-9.]\+\)\/.*/\1/') -- cgit v1.2.3