megactl/debian/megactl.preinst

14 lines
239 B
Plaintext
Raw Permalink Normal View History

2017-04-22 15:01:27 +02:00
#!/bin/sh -e
# Skip if there's no previous version
if [ ! -z $2 ]; then
if dpkg --compare-versions $2 lt 0.4.1-4; then
update-rc.d -f megactl-makedev remove || true
rm -f /etc/init.d/megactl-makedev
fi
fi
#DEBHELPER#
exit 0