-
Notifications
You must be signed in to change notification settings - Fork 23
/
install_xsu.sh
executable file
·84 lines (59 loc) · 1.89 KB
/
install_xsu.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#! /data/data/com.termux/files/usr/bin/bash
# This is Termux supreruser installer,
# you can safely delete this file after installation.
# This installer downloads my addtional libraries,
# for installation.
# For the source code of installation libraries,
# you can visit: https://github.com/name-is-cipher/cipherus-termux/blob/main/cipherus-libraries.sh
# or there is copy of libraries file in assets folder ( Might not be updated version ).
if [ ! -d ~/.termux ]; then
clear
echo " "
echo " [!] Your are on older version of Termux !!!"
echo " Please update and re run the Installation"
exit
fi
clear
## Pre variable initiations ##
Dev=0
if [[ Dev == 0 ]]; then
export BRANCH=main
else
export BRANCH=development
fi
### Downloading installation Libraries ###
if [[ ! -f cipherus-libraries.sh ]]; then
curl -Os https://raw.githubusercontent.com/name-is-cipher/cipherus-termux/$BRANCH/cipherus-libraries.sh
fi
source cipherus-libraries.sh
function banner_termux-superuser() {
blue='\033[1;34m'
light_cyan='\033[1;96m'
reset='\033[0m'
clear
printf " ${blue}################################\n"
printf " ${blue}## ##\n"
printf " ${blue}## Termux Superuser ##\n"
printf " ${blue}## ##\n"
printf " ${blue}################################\n"
printf " ${blue}||||||| ${light_cyan}name-is-cipher ${blue}|||||||\n"
printf " ${blue}--------------------------------${reset}"
echo " "
echo " "
}
################# Main ################
banner_termux-superuser
apt-update
echo " "
echo " Press ENTER to continue ..."
read
banner_termux-superuser
check_tbin
install_termux-superuser
clean_cipherus
echo " [*] Termux needs to be restarted to work properly,"
echo " Please restart !"
echo " "
read
exit
############### THE END #################