From 7b905225fd9c2d2859f7e8423bffff58a7c6c595 Mon Sep 17 00:00:00 2001 From: tm-107 <41205746+tm-107@users.noreply.github.com> Date: Wed, 19 Feb 2025 00:22:58 +0100 Subject: [PATCH 1/2] remove entry from rc.local --- uninstall.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index 962352a..dbbb7e4 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,8 +1,14 @@ -#!/bin/bash +#!/bin/sh SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SERVICE_NAME=$(basename $SCRIPT_DIR) rm /service/$SERVICE_NAME -kill $(pgrep -f 'supervise dbus-goecharger') +kill $(pgrep -f 'supervise $SERVICE_NAME') chmod a-x $SCRIPT_DIR/service/run ./restart.sh + +# remove entry from rc.local +filename=/data/rc.local +grep -v $SERVICE_NAME $filename > $filename.temp +mv $filename.temp $filename +chmod +x $filename From 2c8311bbe186a0b6db12defa2a2c8bbedbda5ef6 Mon Sep 17 00:00:00 2001 From: tm-107 <41205746+tm-107@users.noreply.github.com> Date: Wed, 19 Feb 2025 00:24:23 +0100 Subject: [PATCH 2/2] remove entry from rc.local --- uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uninstall.sh b/uninstall.sh index dbbb7e4..c393c7e 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SERVICE_NAME=$(basename $SCRIPT_DIR)