-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.sh
More file actions
executable file
·68 lines (66 loc) · 1.46 KB
/
menu.sh
File metadata and controls
executable file
·68 lines (66 loc) · 1.46 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
#!/bin/bash
function menu {
clear
echo " ----------------------------------------"
echo " < Menu >"
echo " ----------------------------------------"
echo " 1 - Extract image from file original.img"
echo " 2 - Create image file"
echo " 3 - Extract bootfs image (root)"
echo " 4 - Extract root image"
echo " 5 - Extract recovery image"
echo " 6 - Extract system image (root)"
echo " a - (2) Extract system image method 2 (root)"
echo " 7 - Create bootfs image file"
echo " 8 - Create root image file"
echo " 9 - Create recovery image file"
echo " 0 - Create system image file"
echo " ----------------------------------------"
echo " f - Convert script.bin to script.ini"
echo " b - Convert script.ini to script.bin"
echo " ----------------------------------------"
echo " d - Delete all files"
echo " q - Exit"
read -n 1 command
echo ""
}
while [ $? -ne 1 ]
do
menu
case $command in
1) ./scripts/extract_image.sh
;;
2) ./scripts/create_image.sh
;;
3) sudo ./scripts/extract_bootfs.sh
;;
4) ./scripts/extract_root.sh
;;
5) ./scripts/extract_recovery.sh
;;
6) sudo ./scripts/extract_system.sh
;;
a) sudo ./scripts/extract_system2.sh
;;
7) ./scripts/build_bootfs.sh
;;
8) ./scripts/build_root.sh
;;
9) ./scripts/build_recovery.sh
;;
0) ./scripts/build_system.sh
;;
d) ./scripts/clean.sh
;;
f) ./scripts/fexc_script.sh 1
;;
b) ./scripts/fexc_script.sh 2
;;
q) clear
exit 0
break
;;
esac
echo -en "\n\n\t\t\tPress any key..."
read -n 1 line
done