瀏覽代碼

fix about lastbinpath

rufengsuixing 5 年之前
父節點
當前提交
8639e65cd5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      root/etc/init.d/AdGuardHome

+ 1 - 1
root/etc/init.d/AdGuardHome

@@ -325,6 +325,7 @@ start_service() {
 		fi
 		echo "AdGuardHome turn on"
 		echo "enabled="$enabled""
+		uci set $CONFIGURATION.$CONFIGURATION.lastbinpath=$binpath
 	fi
 }
 
@@ -334,7 +335,6 @@ stop_service()
 	do_redirect 0
 	config_get lastbinpath $CONFIGURATION lastbinpath $binpath
 	pgrep $lastbinpath | xargs kill
-	uci set $CONFIGURATION.$CONFIGURATION.lastbinpath=$binpath
 	echo "AdGuardHome turn off"
 	echo "enabled="$enabled""
 }