Garbage in the Abyss
Storage of indispensable rubbish
Project - Flying Tomato Airlines
This is not a real website.
This was designed as part of a school project on web design and usability.
This web site provide cheap flight tickets in east Asia
Flying Tomato Airlines
Old PAD back up bash command
#!/bin/sh
clear
while :
do
if [ "$ERR_MSG" != "" ]; then
echo "Error: $ERR_MSG"
echo ""
fi
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo " PAD Backup and Restore "
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo
echo "1. Backup"
echo "2. Restore"
echo "3. Extract"
echo "4. Pack"
echo "5. Exit"
echo "6. Bluetooth Connect"
ERR_MSG=""
PATH=""
cd $(dirname $BASH_SOURCE)
read -p "Input: " A
case $A in
1) cd $(dirname $BASH_SOURCE);
./adb backup jp.gungho.pad -f s/ori.ab;
read -p "Backup finished. Press [Enter] key to continue...";;
2) cd $(dirname $BASH_SOURCE);
./adb restore s/fin.ab;
read -p "Restore finished. Press [Enter] key to continue...";;
3) cd $(dirname $BASH_SOURCE)/s;
echo "Extracting .ab . . .";
java -jar abe.jar unpack ori.ab ori.tar > /dev/null;
tar -xvf ori.tar &> /dev/null;
tar -tf ori.tar > ori.list;
echo "Check & fix .list . . .";
sed -i '' '/\._/d' ./ori.list;
read -p "Extraction finished. Press [Enter] key to continue..." E;
if [ $E = "Y" ]; then
cp $PATH;
fi;;
4) cd $(dirname $BASH_SOURCE)/s;
echo "Packing .ab . . .";
cat ori.list | grep jp.gungho.pad > fin.list;
cat fin.list | pax -wd > fin.tar;
java -jar abe.jar pack fin.tar fin.ab &> /dev/null;
read -p "Packing finished. Press [Enter] key to continue...";;
5) osascript -e 'tell application "Terminal" to quit' &
exit;;
6) cd $(dirname $BASH_SOURCE);
./adb connect 192.168.44.1;;
*)ERR_MSG="Error"
esac
clear
done
clear
while :
do
if [ "$ERR_MSG" != "" ]; then
echo "Error: $ERR_MSG"
echo ""
fi
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo " PAD Backup and Restore "
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo
echo "1. Backup"
echo "2. Restore"
echo "3. Extract"
echo "4. Pack"
echo "5. Exit"
echo "6. Bluetooth Connect"
ERR_MSG=""
PATH=""
cd $(dirname $BASH_SOURCE)
read -p "Input: " A
case $A in
1) cd $(dirname $BASH_SOURCE);
./adb backup jp.gungho.pad -f s/ori.ab;
read -p "Backup finished. Press [Enter] key to continue...";;
2) cd $(dirname $BASH_SOURCE);
./adb restore s/fin.ab;
read -p "Restore finished. Press [Enter] key to continue...";;
3) cd $(dirname $BASH_SOURCE)/s;
echo "Extracting .ab . . .";
java -jar abe.jar unpack ori.ab ori.tar > /dev/null;
tar -xvf ori.tar &> /dev/null;
tar -tf ori.tar > ori.list;
echo "Check & fix .list . . .";
sed -i '' '/\._/d' ./ori.list;
read -p "Extraction finished. Press [Enter] key to continue..." E;
if [ $E = "Y" ]; then
cp $PATH;
fi;;
4) cd $(dirname $BASH_SOURCE)/s;
echo "Packing .ab . . .";
cat ori.list | grep jp.gungho.pad > fin.list;
cat fin.list | pax -wd > fin.tar;
java -jar abe.jar pack fin.tar fin.ab &> /dev/null;
read -p "Packing finished. Press [Enter] key to continue...";;
5) osascript -e 'tell application "Terminal" to quit' &
exit;;
6) cd $(dirname $BASH_SOURCE);
./adb connect 192.168.44.1;;
*)ERR_MSG="Error"
esac
clear
done