1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pre_upgrade() { echo :: Removing runtime tmp files... rm -f /var/tmp/batterycm-switcher.log rm -f /tmp/batterycm* } pre_remove() { echo :: Removing some systemd services... batterycm-switcher noauto batterycm-switcher disable } post_remove() { echo :: Removing runtime tmp files... rm -f /var/tmp/batterycm-switcher.log rm -f /tmp/batterycm* }