From cb0e767bd9c0a8e81bfb76313bf8ed1e41d8eb40 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Sun, 3 Jun 2018 22:22:39 +0200 Subject: [PATCH] update ip module --- modules/ip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ip b/modules/ip index 853838d..24d250e 100755 --- a/modules/ip +++ b/modules/ip @@ -19,7 +19,7 @@ [[ "$BLOCK_BUTTON" == 3 ]] && firefox # get LONG status -[[ "$BLOCK_BUTTON" == 1 || "$BLOCK_BUTTON" =~ "long" ]] && LONG=true || LONG=false +[[ "$BLOCK_BUTTON" == 1 || "$BLOCK_INSTANCE" =~ "long" ]] && LONG=true || LONG=false # get interface if [[ -n "$BLOCK_INSTANCE" ]]; then @@ -30,7 +30,7 @@ fi # check if network interface is available if [[ "$IF" == "" || ! -d "/sys/class/net/$IF" ]]; then - [[ "$LONG" ]] && echo "No network interface found\nn/a\n\n" || echo "n/a\nn/a\n\n" + [[ "$LONG" ]] && echo "No network" || echo "n/a" exit 33 fi