Fix BSP postrm action on package upgrade

This commit is contained in:
zador-blood-stained 2017-09-20 15:19:17 +03:00
parent 3e2d1c0ac8
commit 7afff9d19d

View File

@ -63,9 +63,11 @@ create_board_package()
# postrm script
cat <<-EOF > $destination/DEBIAN/postrm
#!/bin/sh
[ remove = "\$1" ] || [ abort-install = "\$1" ] && dpkg-divert --package linux-${RELEASE}-root-${DEB_BRANCH}${BOARD} --remove --rename \
--divert /etc/mpv/mpv-dist.conf /etc/mpv/mpv.conf
systemctl disable log2ram.service armhwinfo.service >/dev/null 2>&1
if [ remove = "\$1" ] || [ abort-install = "\$1" ]; then
dpkg-divert --package linux-${RELEASE}-root-${DEB_BRANCH}${BOARD} --remove --rename \
--divert /etc/mpv/mpv-dist.conf /etc/mpv/mpv.conf
systemctl disable log2ram.service armhwinfo.service >/dev/null 2>&1
fi
exit 0
EOF