Fix BSP postrm action on package upgrade
This commit is contained in:
parent
3e2d1c0ac8
commit
7afff9d19d
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user