From 7beaee6c0ad1f207e1a6db89e2f24b0552f4d94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Drahn=C3=ADk?= Date: Sat, 24 Jun 2023 13:00:37 +0200 Subject: [PATCH] Added missing call of systemctl daemon-reload after installing/uninstalling --- install.sh | 9 +++++++++ uninstall.sh | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/install.sh b/install.sh index 26913d8..c8fefaf 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/uninstall.sh b/uninstall.sh index 767bca1..a713a61 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -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