#!/bin/bash flasbackDir="/Library/FlashBack" if [ ! -d $flasbackDir/Backups ]; then mkdir $flasbackDir mkdir $flasbackDir/Backups fi pause(){ read -p "Press return key to continue..." fackEnterKey } one(){ #Backup current preferences echo " " read -p "Enter Backup Name: " backupName #Enter the name of the backup read -p "Enter Your UserName: " userName #Enter the name of the setup creator read -p "Enter A Short Description: " userDesc #Enter a description backupLocation="$flasbackDir/Backups/"$backupName #backup folder with backup's name mkdir $backupLocation #Creates backup folder mkdir $backupLocation/Preferences #Creates Backup Preference Folder mkdir $backupLocation/IconLayout #Creates Backup Icon Layout Folder mkdir $backupLocation/Wallpaper #Creates Backup Wallpaper Folder echo " " echo "Would you like to specify dependancies?" echo "If so, it's recommended to use iCleaner Pro to clean up unused preference files before you start." echo " " echo "AutoMatic: You select which packages are dependancies, for a streamlined installation." echo "Manual: Dependancies are not set for users, they must install the tweaks themselves." echo " " read -p "Type 'yes' to proceed in automatic mode, press enter to use manual mode: " autoMode #User will specify which packages are backed up and depended upon if [[ $autoMode = "yes" ]] then echo " " read -p "Staring automatic mode. A list of installed packages will appear in a moment. Use that list to select which packages are dependancies. Press enter to proceed." apt-mark auto "gsc*" &> /dev/null echo " " apt-mark showmanual read -p "Please copy all desired dependancies from above EXACTLY as they are displayed. Separate them with a comma and a space (, ): " userSetDependancies fi echo "Copying to "$backupLocation"..." excludeApple="!(com.apple*,com.saurik*).plist" cp -r -f "/var/mobile/Library/Preferences/"$excludeApple $backupLocation/Preferences/ #copy all non-apple Plists to Preference folder within backup haha cp -r -f /var/mobile/Library/SpringBoard/IconState.plist $backupLocation/IconLayout/IconState.plist #copy IconState Plist to IconLayout folder within backup cp -r -f /var/mobile/Library/SpringBoard/*Background* $backupLocation/Wallpaper/ #copy Wallpaper & data to Wallpaper folder within backup echo " " echo "Creating Control File..." if [[ $autoMode = "yes" ]] then cat > $backupLocation/control < $backupLocation/control <