diff options
author | LavaDesu | 2021-01-28 22:05:08 +0700 |
---|---|---|
committer | LavaDesu | 2021-01-28 22:11:47 +0700 |
commit | 16b9f5026738b59208fdd74d660efb6b49388272 (patch) | |
tree | a09e0909a8ba10e09682b2ed8fae4a77f5c40ed6 /notes.install | |
parent | 50ee5dba0605d7f422d445cecdd38f4a28cc615d (diff) | |
download | aur-16b9f5026738b59208fdd74d660efb6b49388272.tar.gz |
Improve systemd service
Diffstat (limited to 'notes.install')
-rw-r--r-- | notes.install | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/notes.install b/notes.install index e3964ca9d122..11c45bea26fa 100644 --- a/notes.install +++ b/notes.install @@ -22,7 +22,7 @@ msg_modules() { echo -e " ${GREEN}blacklist <module>${RESET}" echo "Where <module> is 'wacom' if you own a wacom tablet, and 'hid_uclogic' otherwise." echo "To unload the module immediately, run:" - echo -e " $ ${GREEN}sudo rmmod <module>${RESET}" + echo -e " # ${GREEN}rmmod <module>${RESET}" echo } @@ -32,6 +32,31 @@ msg_faq() { } +msg_upgrade_starting() { + if [ $(vercmp $1 'v0.4.2.r282.g4372321-2') -gt -1 ] + then + return 0 + fi + + echo "The method of starting the daemon has changed since your previous version of OpenTabletDriver." + msg_starting +} + +msg_upgrade_systemd() { + if [ $(vercmp $1 'v0.5.0.r59.g6780778-2') -gt -1 ] + then + return 0 + fi + + echo "OpenTabletDriver's systemd user service has been updated since your previous version" + echo "To make systemd aware of this and apply changes immediately, please run the following commands:" + echo -e "${GREEN}systemctl --user daemon-reload" + echo "systemctl --user reenable opentabletdriver.service" + echo -e "systemctl --user restart opentabletdriver.service${RESET}" + echo +} + + post_install() { echo echo -e "${BOLD}Welcome to OpenTabletDriver!${RESET}" @@ -44,15 +69,6 @@ post_install() { } post_upgrade() { - if [ $(vercmp $2 'v0.4.2.r282.g4372321-2') -gt -1 ] - then - return 0 - fi - - echo - echo -e "${BOLD}Welcome to OpenTabletDriver!${RESET}" - echo "There are changes in the packaging compared to your previous version." - echo - echo "The method of starting the daemon has changed." - msg_starting + msg_upgrade_starting $2 + msg_upgrade_systemd $2 } |