diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 01:45:28 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 02:18:58 -0800 |
commit | 35ee854810ce90c8418e3072cfb28e246fdba013 (patch) | |
tree | b65b354ab09d55b66fde4a3eb36b8b6c8f21e1c1 | |
parent | 5e84512182af57d942a678c7ff5cf51c39d3ad72 (diff) |
Take Telesphoreo's preinst.
-rw-r--r-- | makefile | 1 | ||||
-rwxr-xr-x | preinst | 20 |
2 files changed, 21 insertions, 0 deletions
@@ -153,6 +153,7 @@ debs/cydia_$(version)_iphoneos-arm.deb: MobileCydia $(images) $(shell find Mobil mkdir -p _/DEBIAN ./control.sh _ >_/DEBIAN/control + cp -a preinst _/DEBIAN/ find _ -exec touch -t "$$(date -j -f "%s" +"%Y%m%d%H%M.%S" "$$(git show --format='format:%ct' | head -n 1)")" {} ';' @@ -0,0 +1,20 @@ +#!/bin/bash + +declare -a cydia +cydia=($CYDIA) + +if [[ $1 == upgrade ]]; then + if [[ ${CYDIA+@} ]]; then + if [[ ${cydia[1]} -lt 1 ]]; then + echo 'PLEASE RESTART CYDIA!' + echo 'PLEASE RESTART CYDIA!' + echo 'PLEASE RESTART CYDIA!' + else + eval "echo 'finish:reopen' >&${cydia[0]}" + fi + fi + + echo >/tmp/.cydia.fw +fi + +exit 0 |