blob: 684f716ddf1102219422252114cd2cdcd27ea3e6 [file] [log] [blame]
#!/bin/sh
set -e
if [ -f /var/lib/dpkg/info/watchdog.prerm ]; then
# fix that old nasty reboot-on-upgrade bug
if [ `grep "/etc/init.d/watchdog stop" /var/lib/dpkg/info/watchdog.prerm >/dev/null` ]
then
sed -e 's%/etc/init.d/watchdog stop%# do not stop watchdog here /etc/init.d/watchdog stop%' < /var/lib/dpkg/info/watchdog.prerm > /var/lib/dpkg/info/watchdog.prerm.new &&
mv /var/lib/dpkg/info/watchdog.prerm.new /var/lib/dpkg/info/watchdog.prerm
fi
fi
#DEBHELPER#