#!/bin/sh # Stop the service before we begin the removal. if [ -x /etc/init.d/Tailscale.sh ]; then /etc/init.d/Tailscale.sh stop /etc/init.d/Tailscale.sh remove /bin/sleep 5 /bin/sync fi # Package specific routines as defined in package_routines. # Remove QPKG directory, init-scripts, and icons. if which rsync >/dev/null 2>&1; then /bin/mkdir -p /tmp/qpkg_blankdir rsync -a --delete /tmp/qpkg_blankdir "/share/CACHEDEV1_DATA/.qpkg/Tailscale" /bin/rm -fr "/share/CACHEDEV1_DATA/.qpkg/Tailscale" fi /bin/rm -fr "/share/CACHEDEV1_DATA/.qpkg/Tailscale" /bin/rm -f "/etc/init.d/Tailscale.sh" /usr/bin/find /etc/rcS.d -type l -name 'QS*Tailscale' | /usr/bin/xargs /bin/rm -f /usr/bin/find /etc/rcK.d -type l -name 'QK*Tailscale' | /usr/bin/xargs /bin/rm -f /bin/rm -f "/home/httpd/RSS/images/Tailscale.gif" /bin/rm -f "/home/httpd/RSS/images/Tailscale_80.gif" /bin/rm -f "/home/httpd/RSS/images/Tailscale_gray.gif" # Package specific routines as defined in package_routines. # Package specific routines as defined in package_routines. { rm -f /home/httpd/cgi-bin/qpkg/Tailscale rm -rf /tmp/tailscale if [ -f /etc/resolv.pre-tailscale-backup.conf ] && grep -q 100.100.100.100 /etc/resolv.conf; then mv /etc/resolv.pre-tailscale-backup.conf /etc/resolv.conf fi }