-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.sh
97 lines (93 loc) · 3.55 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
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
94
95
96
97
#!/bin/bash
#Start Script
# Colour
R="\033[1;31m"
G="\033[1;32m"
Y="\033[1;33m"
PU="\033[1;34m"
PI="\033[1;35m"
B="\033[1;36m"
W="\033[1;37m"
Teal="\e[38;5;37m"
Gold="\033[38;5;220m"
# files PATH
LOG_DIR=$PWD/logs
ILOG=$LOG_DIR/install.logs
# status_check installed or Failed
status_check() {
if [ $? -eq 0 ]
then
echo -e "$1 - ${G}Installed"
else
echo -e "$1 - ${R}Failed!"
fi
}
mkdir -p $LOG_DIR
# Logs File
termux_install() {
echo -e '=================================\n𝐃𝐀𝐑𝐊 𝐋𝐄𝐆𝐄𝐍𝐃𝐒\n==================================\n\n\n' > "$ILOG"
echo -e "=====================\n[+]https://github.com/Dark-Legends\n=====================\n\n" >> "$ILOG"
echo -e "=====================\n[(♥) Check Other Script And Tools ]\n=====================\n\n" >> "$ILOG"
echo -e '=====================\n[1]https://github.com/Dark-Legends/Linux-Package-Manager\n=====================\n' >> "$ILOG"
echo -e '=====================\n[2]https://github.com/Dark-Legends/Terminal-backup\n=====================\n' >> "$ILOG"
echo -e '=====================\n[3]https://github.com/Dark-Legends/QRcode\n=====================\n' >> "$ILOG"
echo -e '=====================\n[4]https://github.com/Dark-Legends/wireshark-termux\n=====================\n' >> "$ILOG"
echo -e '=====================\n[5]https://github.com/Dark-Legends/SSH\n=====================\n' >> "$ILOG"
echo -e '\n--------------------\n' >> "$ILOG"
echo -e '=====================\nINSTALLING\n=====================\n' >> "$ILOG"
echo -e "\n--------------------\n" >> "$ILOG"
S=$(date +"[%r]==%d/%m/%Y==[%A]")
echo -e "\nStart-time : ${S}\n" >> "$ILOG"
echo -e "Commandline : apt install proot-distro" >> "$ILOG"
apt install proot-distro -y &>> "$ILOG"
E=$(date +"[%r]==%d/%m/%Y==[%A]")
echo -e "\nEnd-time : ${E}\n" >> "$ILOG"
status_check proot-distro
echo -e '\n--------------------\n' >> "$ILOG"
St=$(date +"[%r]==%d/%m/%Y==[%A]")
echo -e "\nStart-time : ${St}\n" >> "$ILOG"
echo -e "Commandline : apt install pv" >> "$ILOG"
pkg install pv -y &>> "$ILOG"
En=$(date +"[%r]==%d/%m/%Y==[%A]")
echo -e "\nEnd-time : ${En}\n" >> "$ILOG"
status_check pv
echo -e '\n--------------------\n' >> "$ILOG"
}
banner() {
echo -e "\033[1;31m"
echo -e "\t _| _|_|_| _| _| _| _| _| _| "
echo -e "\t _| _| _|_| _| _| _| _| _| "
echo -e "\t _| _| _| _| _| _| _| _| "
echo -e "\t _| _| _| _|_| _| _| _| _| "
echo -e "\t _|_|_|_| _|_|_| _| _| _|_| _| _| "
for ((i=1; i<=4; i++))
do
echo
done
echo -e "\t _|_|_| _|_|_| _|_|_| _|_|_|_|_| _|_|_| _|_| "
echo -e "\t _| _| _| _| _| _| _| _| _| "
echo -e "\t _| _| _| _|_| _| _|_|_| _| _| "
echo -e "\t _| _| _| _| _| _| _| _| _|"
echo -e "\t _|_|_| _|_|_| _|_|_| _| _| _| _|_| "
echo
}
banner
echo -e "\t\t\t\t\t\t\t${Teal}Version 3.O"
echo -e "\033[1;32m"
echo -e "\t\t${W}Code ${PI}By ${B}Manjuanth\n\n"
echo -e "\033[1;32m"
termux_install
echo -e '\n--------------------\n' >> "$ILOG"
echo -e '\n=========\nCOMPLETED\n=========\n' >> "$ILOG"
echo -e "\n${PI}[+] ${G}Logs Saved : ${Gold}$ILOG"
sleep 1
chmod +x linux-distro
chmod +x Linux-distro
mv linux-distro /data/data/com.termux/files/usr/bin
rm -rf 'images (1)~2.jpeg'
echo
echo -e "\t${G}Successfully Installed\n\n"
rm -rf setup.sh
sleep 1
bash Linux-distro
# Script Ended