summaryrefslogtreecommitdiff
path: root/scripts/eth.sh
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-02-26 21:08:01 +0100
committerjohannst <stoelp@eit.uni-kl.de>2018-02-26 21:08:01 +0100
commit94895130d192859f0778db320b9834c5d35c6d46 (patch)
treee809904b82035de26713586cbcf72453f241ba01 /scripts/eth.sh
parent4e98dd2280fb9e9e7e6513d2a0ec52bdf67aa488 (diff)
downloaddotfiles-94895130d192859f0778db320b9834c5d35c6d46.tar.gz
dotfiles-94895130d192859f0778db320b9834c5d35c6d46.zip
added check of operation state for wifi.sh; fixed typo in eth.sh
Diffstat (limited to 'scripts/eth.sh')
-rwxr-xr-xscripts/eth.sh2
1 files changed, 1 insertions, 1 deletions
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/')