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>
This commit is contained in:
liudf0716
2019-05-21 10:55:09 +08:00
committed by Yousong Zhou
parent 423c20fbaf
commit 4af98fc3e9
5 changed files with 516 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/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
}