From 5486dcdc938bae1016000cd170db399838d777dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80?= <78488229+viktor138irk@users.noreply.github.com> Date: Thu, 31 Jul 2025 18:54:43 +0900 Subject: [PATCH] Update del.sh --- del.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/del.sh b/del.sh index 09e8e72..58c6641 100644 --- a/del.sh +++ b/del.sh @@ -2,14 +2,14 @@ mount -o remount,rw / -systemctl disable xlx.timer xlx.service &>/dev/null -systemctl stop xlx.timer xlx.service &>/dev/null +systemctl disable ykt.timer ykt.service &>/dev/null +systemctl stop ykt.timer ykt.service &>/dev/null -if [ -L /etc/systemd/system/xlx.service ]; then - unlink /etc/systemd/system/xlx.service +if [ -L /etc/systemd/system/ykt.service ]; then + unlink /etc/systemd/system/ykt.service fi -if [ -L /etc/systemd/system/xlx.timer ]; then - unlink /etc/systemd/system/xlx.timer +if [ -L /etc/systemd/system/ykt.timer ]; then + unlink /etc/systemd/system/ykt.timer fi systemctl daemon-reload @@ -18,7 +18,7 @@ if [ -f /usr/local/sbin/pistar-daily.cron ]; then sed -i "s/^\/usr\/local\/sbin\/HostFilesUpdate.sh.*/\/usr\/local\/sbin\/HostFilesUpdate.sh/" /usr/local/sbin/pistar-daily.cron fi -find /usr/local/bin/ -type l -name "xlx-*" -delete +find /usr/local/bin/ -type l -name "ykt-*" -delete if [ -d /xlx ]; then rm -rf /tmp @@ -27,20 +27,20 @@ fi wget -O /usr/local/etc/DMRIds.dat https://xlx.dmrykt.ru/pistar/DMRIds.dat # Old files -if [ -f /etc/cron.d/xlx-cron ]; then - rm -rf /etc/cron.d/xlx-cron +if [ -f /etc/cron.d/ykt-cron ]; then + rm -rf /etc/cron.d/ykt-cron fi -if [ -f /usr/local/bin/xlx-del ]; then - rm -rf /usr/local/bin/xlx-del +if [ -f /usr/local/bin/ykt-del ]; then + rm -rf /usr/local/bin/ykt-del fi -if [ -f /usr/local/bin/xlx-getdmrid ]; then - rm -rf /usr/local/bin/xlx-getdmrid +if [ -f /usr/local/bin/ykt-getdmrid ]; then + rm -rf /usr/local/bin/ykt-getdmrid fi -if [ -f /usr/local/bin/xlx-gethost ]; then - rm -rf /usr/local/bin/xlx-gethost +if [ -f /usr/local/bin/ykt-gethost ]; then + rm -rf /usr/local/bin/ykt-gethost fi -if [ -f /usr/local/bin/xlx-update ]; then - rm -rf /usr/local/bin/xlx-update +if [ -f /usr/local/bin/ykt-update ]; then + rm -rf /usr/local/bin/ykt-update fi if [ -f /usr/local/etc/DMRIdsYKT.dat ]; then rm -rf /usr/local/etc/DMRIdsYKT.dat