forked from evolix/evocheck
Under OpenBSD, fix if statement for hostname.carp file detection
This commit is contained in:
parent
f379f6210a
commit
c90de6ec1f
|
@ -917,7 +917,7 @@ fi
|
|||
if [ `uname -s` == "OpenBSD" ]; then
|
||||
|
||||
if [ "$IS_ADVBASE" = 1 ]; then
|
||||
if [[ ls /etc/hostname.carp* 1> /dev/null 2>&1 ]]; then
|
||||
if ls /etc/hostname.carp* 1> /dev/null 2>&1; then
|
||||
for advbase in $(ifconfig carp | grep advbase | awk -F 'advbase' '{print $2}' | awk '{print $1}' | xargs); do
|
||||
if [[ "$advbase" gt 1 ]]; then
|
||||
echo 'IS_ADVBASE FAILED!'
|
||||
|
|
Loading…
Reference in a new issue