homeplus script support
This commit is contained in:
parent
5b2e4dd21d
commit
ebc8797ee6
12 changed files with 16 additions and 1 deletions
BIN
FlashBack.deb
BIN
FlashBack.deb
Binary file not shown.
|
@ -12,14 +12,22 @@ FLASHBACKDIR="/var/mobile/Library/FlashBack"
|
||||||
BKPVERSION="v3"
|
BKPVERSION="v3"
|
||||||
BACKUPLOCATION=$FLASHBACKDIR/Backups/$BACKUPNAME
|
BACKUPLOCATION=$FLASHBACKDIR/Backups/$BACKUPNAME
|
||||||
mkdir -p $BACKUPLOCATION
|
mkdir -p $BACKUPLOCATION
|
||||||
mkdir -p $BACKUPLOCATION/{Preferences,SBFolder,AutoWall} || STATUS="mkdir failed"
|
mkdir -p $BACKUPLOCATION/{Preferences,SBFolder} || STATUS="mkdir failed"
|
||||||
echo -e "\n\e[0;100m[!]\e[0m \e[104mCopying to $BACKUPLOCATION\e[0m"
|
echo -e "\n\e[0;100m[!]\e[0m \e[104mCopying to $BACKUPLOCATION\e[0m"
|
||||||
|
|
||||||
cp -rf "/var/mobile/Library/Preferences/"!(com.apple*|com.saurik*|ckkeyrolld|nfcd|UITextInputContextIdentifiers|.GlobalPreferences).plist $BACKUPLOCATION/Preferences/ || STATUS="cp failed" #copy all non-apple Plists to Preference folder within backup haha
|
cp -rf "/var/mobile/Library/Preferences/"!(com.apple*|com.saurik*|ckkeyrolld|nfcd|UITextInputContextIdentifiers|.GlobalPreferences).plist $BACKUPLOCATION/Preferences/ || STATUS="cp failed" #copy all non-apple Plists to Preference folder within backup haha
|
||||||
cp -rf "/var/mobile/Library/Preferences/"*(*.jpg|*.png|*.gif) $BACKUPLOCATION/Preferences/ &>/dev/null #copy all images to Preference folder within backup
|
cp -rf "/var/mobile/Library/Preferences/"*(*.jpg|*.png|*.gif) $BACKUPLOCATION/Preferences/ &>/dev/null #copy all images to Preference folder within backup
|
||||||
cp -rf /var/mobile/Library/SpringBoard/@(*Icon*|*Background*|SB*) $BACKUPLOCATION/SBFolder/ || STATUS="cp failed" #copy IconState Plist to SBFolder folder within backup
|
cp -rf /var/mobile/Library/SpringBoard/@(*Icon*|*Background*|SB*) $BACKUPLOCATION/SBFolder/ || STATUS="cp failed" #copy IconState Plist to SBFolder folder within backup
|
||||||
|
|
||||||
|
if [[ -d /var/mobile/Documents/HomePlus/ ]]
|
||||||
|
then
|
||||||
|
mkdir -p $BACKUPLOCATION/HomePlusPreferences
|
||||||
|
cp -rf "/var/mobile/Documents/HomePlus/"* "$BACKUPLOCATION/HomePlusPreferences/" #copy homeplus prefs
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -d /var/mobile/Media/AutoWall/ ]]
|
if [[ -d /var/mobile/Media/AutoWall/ ]]
|
||||||
then
|
then
|
||||||
|
mkdir -p $BACKUPLOCATION/AutoWall
|
||||||
cp -rf "/var/mobile/Media/AutoWall/"* "$BACKUPLOCATION/AutoWall/"
|
cp -rf "/var/mobile/Media/AutoWall/"* "$BACKUPLOCATION/AutoWall/"
|
||||||
fi
|
fi
|
||||||
touch $BACKUPLOCATION/$BKPVERSION
|
touch $BACKUPLOCATION/$BKPVERSION
|
||||||
|
|
|
@ -14,7 +14,14 @@ SELECTLOCATION=$FLASHBACKDIR/Backups/$SELECTBACKUP
|
||||||
# COPY BACKUP TO SYSTEM
|
# COPY BACKUP TO SYSTEM
|
||||||
|
|
||||||
cp -r $SELECTLOCATION/Preferences/* /var/mobile/Library/Preferences/ || STATUS="cp failed"
|
cp -r $SELECTLOCATION/Preferences/* /var/mobile/Library/Preferences/ || STATUS="cp failed"
|
||||||
|
cp -r $SELECTLOCATION/HomePlusPreferences/* /var/mobile/Documents/HomePlus/ || STATUS="cp failed"
|
||||||
cp -r $SELECTLOCATION/SBFolder/* /var/mobile/Library/SpringBoard/ || STATUS="cp failed"
|
cp -r $SELECTLOCATION/SBFolder/* /var/mobile/Library/SpringBoard/ || STATUS="cp failed"
|
||||||
|
|
||||||
|
if [[ -d $SELECTLOCATION/HomePlusPreferences/ ]]
|
||||||
|
then
|
||||||
|
cp -r $SELECTLOCATION/HomePlusPreferences/* /var/mobile/Documents/HomePlus/ || STATUS="cp failed"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -d $SELECTLOCATION/AutoWall/ ]]
|
if [[ -d $SELECTLOCATION/AutoWall/ ]]
|
||||||
then
|
then
|
||||||
rm -rf "/var/mobile/Media/AutoWall/"*
|
rm -rf "/var/mobile/Media/AutoWall/"*
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in a new issue