-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.sh
61 lines (50 loc) · 1.35 KB
/
setup.sh
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
#!/sbin/sh
###########################
# MMT Reborn Setup
###########################
############
# Config Vars
############
# Set this to true if you don't want to mount the system folder in your module.
SKIPMOUNT=false
# Set this to true if you want to clean old files in module before flashing new module.
CLEANSERVICE=false
# Set this to true if you want to load vskel after module info print. If you want to manually load it, consider using load_vksel function.
AUTOVKSEL=false
# Set this to true if you want to debug the installation.
DEBUG=true
############
# Replace List
############
# List all directories you want to directly replace in the system.
# Construct your list in the following example format.
REPLACE_EXAMPLE="/system/app/Youtube
/system/priv-app/SystemUI
/system/priv-app/Settings
/system/framework"
# Construct your own list here.
REPLACE=""
############
# Permissions
############
# Set permissions.
set_permissions() {
set_perm "$MODPATH/system/bin/proxy" 0 0 0755
set_perm_recursive "$MODPATH/system" 0 0 0777 0755
}
############
# Info Print
############
# Set what you want to be displayed on header of installation process.
info_print() {
ui_print ""
print_title "MMT Reborn" "By @iamlooper @ telegram"
}
############
# Main
############
# Change the logic to whatever you want.
init_main() {
ui_print ""
ui_print "Hello World!"
}