fix zerotier boot loop

This commit is contained in:
coolsnowwolf 2018-10-15 01:09:42 +08:00
parent b2334751e0
commit e6d5432d84
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ LUCI_TITLE:=LuCI for Zerotier
LUCI_DEPENDS:=+zerotier
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=9
PKG_RELEASE:=10
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -2,7 +2,7 @@
zero_enable=$(uci get zerotier.sample_config.enabled)
if [ $zero_enable -eq 1 ]; then
if [ ($zero_enable -eq 1) && (pgrep /usr/bin/zerotier-one >/dev/null) ]; then
while [ "$(ifconfig | grep zt | awk '{print $1}')" = "" ]
do