Update cattools.sh
This commit is contained in:
@@ -1297,8 +1297,8 @@ configure_tailscale() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! opkg list_installed | grep -q "tailscale" || ! opkg list_installed | grep -q "tailscaled"; then
|
if ! opkg info tailscale | grep "Package: tailscale"; then
|
||||||
echo "正在安装 tailscale 和 tailscaled 软件包..."
|
echo "[INFO] 正在安装 tailscale 和 tailscaled 软件包..."
|
||||||
opkg install tailscale
|
opkg install tailscale
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "[ERROR] 安装 tailscale 失败,请先配置软件源。"
|
echo "[ERROR] 安装 tailscale 失败,请先配置软件源。"
|
||||||
|
|||||||
Reference in New Issue
Block a user