luci-app-serverchan: sync with upstream source

This commit is contained in:
CN_SZTL 2020-03-04 12:18:15 +08:00
parent a7d5817b8c
commit 766b7c3a60
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -445,7 +445,8 @@ function up(){
if [ ! -f "${dir}ipAddress" ] ; then > ${dir}ipAddress;fi
if [ "$1" ] ;then
# 如果 ipAddress 文件中存在此ip则跳过待断线检测
if ( ! echo ${dir}ipAddress | grep -q -w $1 ) ; then
local ip=`cat ${dir}ipAddress | grep -w $1`
if [ -z "$ip" ] ; then
local ip_mac=`getmac $1`
local ip_name=`getname $1 $ip_mac`