diff --git a/install.sh b/install.sh index 53aa4da..efb0a7c 100755 --- a/install.sh +++ b/install.sh @@ -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 ]] diff --git a/uninstall.sh b/uninstall.sh index b858936..2e7ac27 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -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