From f6ff1f963068df255f68e42bd480fb34b81df738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Drahn=C3=ADk?= Date: Thu, 2 Mar 2023 23:59:59 +0100 Subject: [PATCH] #102 added removing old variant of service + typo (for not doubling driver services during pdate to latest version) --- install.sh | 7 +++++++ uninstall.sh | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d630f75..439996f 100755 --- a/install.sh +++ b/install.sh @@ -196,6 +196,13 @@ echo "Selected key layout $model" echo "Installing asus touchpad service to /etc/systemd/system/" +# for removing "old" variant of systemd service of this driver (when was not used user template with @) +rm -f /etc/systemd/system/asus_touchpad_numpad.service +if [[ $? != 0 ]] +then + echo "/etc/systemd/system/asus_touchpad_numpad.service cannot be removed correctly..." +fi + if [ "$wayland_or_x11" = "x11" ]; then echo "X11 is detected" diff --git a/uninstall.sh b/uninstall.sh index f817a14..15e7f52 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -24,10 +24,10 @@ then fi # for removing "old" variant of systemd service of this driver (when was not used user template with @) -rm -f /lib/systemd/system/asus_touchpad_numpad.service +rm -f /etc/systemd/system/asus_touchpad_numpad.service if [[ $? != 0 ]] then - echo "/lib/systemd/system/asus_touchpad_numpad.service cannot be removed correctly..." + echo "/etc/systemd/system/asus_touchpad_numpad.service cannot be removed correctly..." fi systemctl disable asus_touchpad_numpad@$RUN_UNDER_USER.service @@ -40,7 +40,7 @@ fi rm -f /etc/systemd/system/asus_touchpad_numpad@.service if [[ $? != 0 ]] then - echo "/lib/systemd/system/asus_touchpad_numpad.service cannot be removed correctly..." + echo "/etc/systemd/system/asus_touchpad_numpad.service cannot be removed correctly..." exit 1 fi