#!/bin/bash
#
# see: dh_installdeb(1)

set -e

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

case "$1" in
    configure)
        if dpkg --compare-versions "$2" le "2.28.1-1jolicloud1~2.24.2ubuntu8jolicloud1"; then
            echo "* Requesting reboot to restore gnome-power-manager."
            /usr/lib/jolicloud-notifier/notify-reboot-required
        fi
esac

#DEBHELPER#

exit 0
