forked from TeamKeyblade/android_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkitchen
More file actions
executable file
·93 lines (78 loc) · 1.65 KB
/
kitchen
File metadata and controls
executable file
·93 lines (78 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
# Written by Sean Donovan (swordrune10)
if [ ! "$INIT" ]; then
cd $(dirname $0)
export SCRIPT=$(echo "kitchen")
./headerfile
exit 0
fi
menu () {
clear
echo "Swordrune10's Android Kitchen!"
echo "=============================="
echo "Main Menu:"
echo " 1. Setup Kitchen"
echo " 2. Configure Kitchen"
echo " 3. Update Kitchen"
echo " 4. Run Kitchen"
echo " 5. Fix Kitchen"
echo " 6. Auto Build Kitchen"
echo " 7. Exit"
echo ""
echo "Which one would you like to do?"
read answer
if [ ! "$answer" ]; then
echo ""
echo "You did not make a proper selection, try again!"
read -p "Press Enter to continue: " done
fi
if ( echo $answer | grep -q [A-Za-z] ); then
echo ""
echo "You did not make a proper selection, try again!"
read -p "Press Enter to continue: " done
fi
if [ $answer -gt "10" ]; then
echo ""
echo "You did not make a proper selection, try again!"
read -p "Press Enter to continue: " done
fi
if [ $answer == "1" ]; then
reposetup
fi
if [ $answer == "2" ]; then
configkitchen
fi
if [ $answer == "3" ]; then
reposync
fi
if [ $answer == "4" ]; then
buildmenu
fi
if [ $answer == "5" ]; then
fixkitchen
fi
if [ $answer == "6" ]; then
buildautomenu
fi
if [ $answer == "7" ]; then
echo ""
echo "Thank you for using Swordrune10's Kitchen! Good bye.."
exit 0
fi
if [ $answer == "8" ] || [ $answer == "9" ]; then
echo ""
echo "You did not make a proper selection, try again!"
read -p "Press Enter to continue: " done
fi
if [ $answer == "10" ]; then
echo ""
echo "You seem bored.. wanna watch a movie?"
read nothing
if [ $nothing == "no" ] || [ $nothing == "n" ]; then
echo "tough!"
fi
telnet towel.blinkenlights.nl
fi
menu
}
menu