old version maemo9
[kernel-power] / kernel-maemo-2.6.28 / debian / kernel-flasher-maemo.postinst.in
diff --git a/kernel-maemo-2.6.28/debian/kernel-flasher-maemo.postinst.in b/kernel-maemo-2.6.28/debian/kernel-flasher-maemo.postinst.in
new file mode 100644 (file)
index 0000000..e347079
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+KERNEL=/boot/zImage-@VERSION@.fiasco
+
+FLASHER=/sbin/fiasco-image-update
+
+# they say this is The Right Way (tm) to check for
+# scratchbox environment
+if [ -L /targets/links/scratchbox.config ]; then
+       # hehe
+       true
+else
+       if [ -f $KERNEL -a -x $FLASHER ]; then
+               $FLASHER $KERNEL
+       fi
+fi
+
+#DEBHELPER#
+