0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 09:19:51 +00:00
liudf0716 4af98fc3e9 apfree-wifidog: Add new package
Signed-off-by: liudf0716 <liudf0716@gmail.com>
[Fix indentation and trailing whitespace on Makefile and wifidogx.init]
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-06-03 01:07:01 +00:00

8 lines
162 B
Bash

#!/bin/sh
IP=$1
[ -x /usr/sbin/fping ] && {
fping -t 100 -c 1 $IP &> /dev/null && echo 1 || echo 0
} || {
ping -w 1 -c 1 $IP &> /dev/null && echo 1 || echo 0
}