diff options
author | comex | 2015-03-01 23:21:12 -0500 |
---|---|---|
committer | comex | 2015-03-01 23:21:12 -0500 |
commit | 1c1c09d9f126b4421658558ae00f6e0e76b451c3 (patch) | |
tree | 2ce19639fa9aad181cdf576b6dccb508133eb269 /darwin-bootstrap/DEBIAN | |
parent | A number of critical fixes painstakingly discovered in the slowest way possible. (diff) | |
download | substitute-1c1c09d9f126b4421658558ae00f6e0e76b451c3.tar.gz |
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).
Diffstat (limited to 'darwin-bootstrap/DEBIAN')
-rw-r--r-- | darwin-bootstrap/DEBIAN/control | 11 | ||||
-rwxr-xr-x | darwin-bootstrap/DEBIAN/extrainst_ | 14 | ||||
-rwxr-xr-x | darwin-bootstrap/DEBIAN/postrm | 16 |
3 files changed, 41 insertions, 0 deletions
diff --git a/darwin-bootstrap/DEBIAN/control b/darwin-bootstrap/DEBIAN/control new file mode 100644 index 0000000..e6fbe13 --- /dev/null +++ b/darwin-bootstrap/DEBIAN/control @@ -0,0 +1,11 @@ +Package: com.ex.substitute +Architecture: iphoneos-arm +Name: Substitute +Depiction: http://jslinux.org +Author: comex <comexk+da@gmail.com> +Priority: optional +Version: {VERSION} +Description: Substrate substitute for code substitution +Maintainer: comex <comexk+dm@gmail.com> +Section: System + 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 diff --git a/darwin-bootstrap/DEBIAN/postrm b/darwin-bootstrap/DEBIAN/postrm new file mode 100755 index 0000000..5eec6f8 --- /dev/null +++ b/darwin-bootstrap/DEBIAN/postrm @@ -0,0 +1,16 @@ +#!/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]} +} + +if [[ "$1" == "remove" ]]; then + finish reboot +fi |