From 1c1c09d9f126b4421658558ae00f6e0e76b451c3 Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 1 Mar 2015 23:21:12 -0500 Subject: Add extrainst_ and postrm Not actually tested, because I'm too tired tonight to try setting up a real repository (as opposed to dpkg -i). --- darwin-bootstrap/DEBIAN/extrainst_ | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 darwin-bootstrap/DEBIAN/extrainst_ (limited to 'darwin-bootstrap/DEBIAN/extrainst_') diff --git a/darwin-bootstrap/DEBIAN/extrainst_ b/darwin-bootstrap/DEBIAN/extrainst_ new file mode 100755 index 0000000..4d0e495 --- /dev/null +++ b/darwin-bootstrap/DEBIAN/extrainst_ @@ -0,0 +1,14 @@ +#!/bin/bash + +# for now, always reboot on install/uninstall + +# <- http://iphonedevwiki.net/index.php/Packaging#Telling_Cydia_to_respring.2Freboot_etc._after_install +function finish() { + f="${1}" + [[ -z "${f}" || -z "${CYDIA}" ]] && return + cydia=(${CYDIA}) + [[ ${cydia[1]} -eq 1 ]] || return + echo "finish:${f}" >&${cydia[0]} +} + +finish reboot -- cgit v1.2.3