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 b1aecf2 commit e6a9f87
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 @@ -53,6 +53,15 @@ mkdir -p /var/log/asus_fliplock-driver
install asus_fliplock.py /usr/share/asus_fliplock-driver/
install -t /usr/share/asus_fliplock-driver/conf conf/*.py

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_fliplock

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

0 comments on commit e6a9f87

Please sign in to comment.