From c6499b9955d8521bb4ef972c8444db6f01178c33 Mon Sep 17 00:00:00 2001 From: Artem Garmash Date: Wed, 17 Feb 2010 17:34:03 +0200 Subject: [PATCH] Show the reboot note only during upgrade --- debian/conversations-inbox-widget.postinst | 23 ----------------------- debian/conversations-inbox-widget.preinst | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 23 deletions(-) delete mode 100644 debian/conversations-inbox-widget.postinst create mode 100644 debian/conversations-inbox-widget.preinst diff --git a/debian/conversations-inbox-widget.postinst b/debian/conversations-inbox-widget.postinst deleted file mode 100644 index 031d909..0000000 --- a/debian/conversations-inbox-widget.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#! /bin/sh - -case "$1" in - configure) - - run-standalone.sh dbus-send \ - --dest=org.freedesktop.Notifications \ - /org/freedesktop/Notifications \ - org.freedesktop.Notifications.SystemNoteInfoprint \ - string:"Restart device to complete installation" - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/debian/conversations-inbox-widget.preinst b/debian/conversations-inbox-widget.preinst new file mode 100644 index 0000000..e60aea3 --- /dev/null +++ b/debian/conversations-inbox-widget.preinst @@ -0,0 +1,18 @@ +#! /bin/sh + +case "$1" in + upgrade) + + run-standalone.sh dbus-send \ + --dest=org.freedesktop.Notifications \ + /org/freedesktop/Notifications \ + org.freedesktop.Notifications.SystemNoteInfoprint \ + string:"Restart device to complete installation" + ;; + + install|abort-upgrade) + + ;; +esac + +exit 0 -- 1.7.9.5