drop applet from this repo, changelog fixes
[cell-modem-ui] / debian / cell-modem-ui.postinst
diff --git a/debian/cell-modem-ui.postinst b/debian/cell-modem-ui.postinst
new file mode 100644 (file)
index 0000000..8e41c51
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+case "$1" in
+    configure)
+    if [ -e /etc/systemui/cell-modem-ui.xml ]; then
+      rm -f /etc/systemui/cell-modem-ui.xml
+    fi
+    ln -s /opt/cell-modem-ui/cell-modem-ui.xml /etc/systemui/cell-modem-ui.xml 
+
+    echo "Restarting systemui..."
+    killall systemui || true
+    ;;
+
+    *)
+    ;;
+esac
+