blob: 72934dd5c1a01b866f3c3bd986d70fed842871b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
if [ $(vercmp $2 1.62) -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
}
|