update ip module
This commit is contained in:
parent
f448110376
commit
cb0e767bd9
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user