Show the reboot note only during upgrade
authorArtem Garmash <artemgarmash@gmail.com>
Wed, 17 Feb 2010 15:34:03 +0000 (17:34 +0200)
committerArtem Garmash <artem.garmash@nokia.com>
Sun, 27 Jun 2010 19:13:48 +0000 (22:13 +0300)
debian/conversations-inbox-widget.postinst [deleted file]
debian/conversations-inbox-widget.preinst [new file with mode: 0644]

diff --git a/debian/conversations-inbox-widget.postinst b/debian/conversations-inbox-widget.postinst
deleted file mode 100644 (file)
index 031d909..0000000
+++ /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 (file)
index 0000000..e60aea3
--- /dev/null
@@ -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