We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 574774c commit f9c81f5Copy full SHA for f9c81f5
routertools
@@ -41,7 +41,7 @@ trap 'trap_ctl' SIGINT SIGTERM
41
42
# Initialize variables and language setting for compatibility
43
LANG=C
44
-version="1.5.1"
+version="1.5.1a"
45
error_count=0
46
crit_count=0
47
crit_add=0
@@ -1834,7 +1834,7 @@ check_iface_present(){
1834
1835
local i=$1
1836
1837
- if [[ $(ifconfig -a | grep "flags=" | cut -d" " -f1 | grep -c "$i") -eq 1 ]]; then
+ if [[ $(ifconfig -a | grep "flags=" | cut -d" " -f1 | grep -c "$i") -ne 0 ]]; then
1838
return 0
1839
else
1840
return 1
0 commit comments