Skip to content

Commit

Permalink
Added missing call of systemctl daemon-reload after installing/uninst…
Browse files Browse the repository at this point in the history
…alling
  • Loading branch information
ldrahnik committed Jun 24, 2023
1 parent 2c9eee0 commit 7beaee6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,15 @@ else
echo "Automatic installing of toggling script for XF86Calculator key failed. Please create an issue (https://github.com/asus-linux-drivers/asus-numberpad-driver/issues)."
fi

systemctl daemon-reload

if [[ $? != 0 ]]; then
echo "Something went wrong when was called systemctl daemon reload"
exit 1
else
echo "Systemctl daemon realod called succesfully"
fi

systemctl enable asus_touchpad_numpad@$RUN_UNDER_USER.service

if [[ $? != 0 ]]; then
Expand Down
9 changes: 9 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,14 @@ then
exit 1
fi

systemctl daemon-reload

if [[ $? != 0 ]]; then
echo "Something went wrong when was called systemctl daemon reload"
exit 1
else
echo "Systemctl daemon realod called succesfully"
fi

echo "Uninstall finished"
exit 0

0 comments on commit 7beaee6

Please sign in to comment.