Better BSD ping when not root

This commit is contained in:
deajan 2017-02-07 22:28:54 +01:00
parent 2a63707cf7
commit 839c287ec9
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#### OFUNCTIONS MINI SUBSET ####
_OFUNCTIONS_VERSION=2.1-RC1+dev
_OFUNCTIONS_BUILD=2017020702
_OFUNCTIONS_BUILD=2017020703
#### _OFUNCTIONS_BOOTSTRAP SUBSET ####
_OFUNCTIONS_BOOTSTRAP=true
#### _OFUNCTIONS_BOOTSTRAP SUBSET END ####
@ -1669,7 +1669,7 @@ function InitLocalOSDependingSettings {
PING_CMD='$SYSTEMROOT\system32\ping -n 2'
# On BSD, when not root, min ping interval is 1s
elif [ "$LOCAL_OS" == "BSD" ] && [ "$SUDO_EXEC" == "yes" ]; then
elif [ "$LOCAL_OS" == "BSD" ] && [ "$LOCAL_USER" != "root" ]; then
FIND_CMD=find
PING_CMD="ping -c 2 -i 1"
else