aboutsummaryrefslogtreecommitdiff
path: root/darwin-bootstrap/DEBIAN/postrm
blob: 5eec6f8407d2d8ca07094d6c7837bfb9e672dbab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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