core/laptop-mode-tools/laptop-mode.install
2013-10-13 18:29:14 +00:00

13 lines
504 B
Plaintext

## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
# do something here
if [ `vercmp $2 1.61` -lt 0 ] ; then
echo "The systemd service name has changed from \laptop-mode-tools\" to \"laptop-mode\""
echo "The change requires the old symlink to be manually removed:"
echo " rm /etc/systemd/system/multi-user.target.wants/laptop-mode-tools.service"
echo "The laptop-mode.service can be enabled using:"
echo " systemctl enable laptop-mode"
fi
}