Show the reboot note only during upgrade
[conv-inbox] / debian / conversations-inbox-widget.preinst
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