Skip to content

Commit

Permalink
Update uninstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
CH3NGYZ authored Sep 20, 2023
1 parent 1f9238c commit ad9517a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ cleanup() {
echo "已清除,强烈推荐重启您的OpenWRT"
}

if [ ! -e /tmp/tailscaled ]; then
echo "文件不存在,执行清除操作"
if [ -e /tmp/tailscaled ]; then
echo "文件存在,停止Tailscale服务并执行清除操作"
/etc/init.d/tailscale stop
/tmp/tailscale down --accept-risk=lose-ssh
/tmp/tailscale logout
/etc/init.d/tailscale disable
/etc/init.d/tailscale stop
rm -rf /etc/tailscale*
rm -rf /etc/config/tailscale*
rm -rf /etc/init.d/tailscale*
Expand All @@ -23,7 +23,7 @@ if [ ! -e /tmp/tailscaled ]; then
ip link delete tailscale0
cleanup
else
echo "文件存在,执行清除操作"
echo "文件不存在,直接执行清除操作"
rm -rf /etc/tailscale*
rm -rf /etc/config/tailscale*
rm -rf /etc/init.d/tailscale*
Expand Down

0 comments on commit ad9517a

Please sign in to comment.