Skip to content

Commit

Permalink
#102 added removing old variant of service + typo (for not doubling d…
Browse files Browse the repository at this point in the history
…river services during pdate to latest version)
  • Loading branch information
ldrahnik committed Mar 2, 2023
1 parent 44b92fc commit f6ff1f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 3 additions & 3 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,7 +40,7 @@ fi
rm -f /etc/systemd/system/[email protected]
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

Expand Down

0 comments on commit f6ff1f9

Please sign in to comment.