-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
44 lines (36 loc) · 1.12 KB
/
setup
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
#!/bin/bash
RED='\033[1;31m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
PURPLE='\033[1;35m'
GRAY='\033[1;30m'
CYAN='\033[1;36m'
WHITE='\033[1;37m'
NC='\033[0m'
if [ -f "tmxlogin" ]; then
echo -e "${GREEN}Available${NC}"
if ! chmod +x *; then
echo -e "${RED}Execute Permission Provide Error${NC}"
else
echo -e "${GREEN}Execute Permission Provided${NC}"
fi
if ! cp -f tmxlogin /data/data/com.termux/files/usr/bin/; then
echo -e "${RED}File [ tmxlogin ] copy Error${NC}"
else
echo -e "${GREEN}File [ tmxlogin ] copied successfully ${NC}"
fi
if ! grep -q 'tmxlogin' /data/data/com.termux/files/usr/etc/bash.bashrc; then
if ! echo 'tmxlogin' >> /data/data/com.termux/files/usr/etc/bash.bashrc; then
echo -e "${RED}Can't set file in .bashrc file${NC}"
else
echo -e "${GREEN}File set on .bashrc file${NC}"
fi
echo -e "${GREEN}All Done ${NC}"
echo -e "${GREEN}Join Our Telegram Channel${NC}"
sleep 1
xdg-open https://t.me/cyber_man_root
fi
else
echo -e "${RED}File not found${NC}"
fi