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