1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/bin/sh
set -e
# Version 0.1 included an initramfs hook. If we're upgrading from that
# version, we no longer have that hook. Update the generated initramfs
# now so that we don't have to in future.
cleanup_initramfs() {
if command -v update-initramfs >/dev/null 2>&1; then
update-initramfs -u
fi
}
# We'll also need to clean up links to make sure that our new start
# link is installed by update-rc.d. Grotty. :-(
force_remove_old_init_links() {
rm -f /etc/rc?.d/[SK]*fake-hwclock
}
case "${1:-}" in
configure)
if [ "$2"x = "0.1"x ] ; then
cleanup_initramfs
force_remove_old_init_links
fi
# Add a save here to make sure we have time data; the user may
# reboot immediately afterwards, for example.
fake-hwclock save
;;
*) :;;
esac
#DEBHELPER#
|