-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
31 lines (21 loc) · 804 Bytes
/
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
#!/usr/bin/env bash
if type termux-info &> /dev/null; then
apt-get update
apt-get --assume-yes upgrade
apt-get --assume-yes install coreutils gnupg wget termux-api openjdk-17 vim ncurses perl which
if [ ! -f "$PREFIX/etc/apt/sources.list.d/mi-fastboot.list" ]; then
mkdir -p "$PREFIX/etc/apt/sources.list.d"
echo -e "deb https://rohitverma882.github.io termux extras" > "$PREFIX/etc/apt/sources.list.d/mi-fastboot.list"
wget -qP "$PREFIX/etc/apt/trusted.gpg.d" "https://rohitverma882.github.io/rohit.gpg"
apt update
apt install mi-fastboot
else
echo "Repo already installed"
apt install mi-fastboot
fi
echo "done!"
elif type fastboot &> /dev/null; then
echo "Fastboot is already installed"
else
echo "I didn't find fastboot, please install it before proceeding."
fi