diff options
Diffstat (limited to 'preinst')
-rwxr-xr-x | preinst | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |