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 36aecf5 commit 00774df
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 @@ -88,6 +88,15 @@ else
install -t /usr/share/asus_wmi_hotkeys-driver/keys_wmi_layouts/ keys_wmi_layouts/$keys_wmi_layout_filename
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_wmi_hotkeys.service

if [[ $? != 0 ]]
Expand Down
9 changes: 9 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,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 "Asus WMI hotkeys python driver uninstalled"
exit 0

0 comments on commit 00774df

Please sign in to comment.