Here's my script so far:
What I need is a if statement for the application Cydia kinda like this:Code:#!/bin/bash
cd /var/backups/System/
chmod 444 Themes.zip
chown nobody:mobile Themes.zip
exit 0
But I want a finsih restart on install and uninstall if possible?Code:#!/bin/bash
declare -a cydia
cydia=($CYDIA)
if [[ $! == remove ]]; then
* * #FIXME: this may need to be changed when we have updates
* * SpireRemover
* * # force a reboot after uninstallation
* * if [[ ${CYDIA+at symbol} ]]; then
* * eval "echo 'finish:reboot' >&${cydia[0]}"
* * fi
fi
exit 0

