-
Notifications
You must be signed in to change notification settings - Fork 5
/
install
66 lines (62 loc) · 1.75 KB
/
install
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
#!/bin/bash
# +-----===== [[ Kagari Shell Finder
# +----===== [[ Codename : Penikung
# +---===== [[ Version : 1.8
# +--===== [[ Author : shutdown57 a.k.a alinko
# +-===== [[ linuxcode.org - github.com/alintamvanz
#
m="\033[1;31m"
k="\033[1;33m"
h="\033[1;32m"
b="\033[1;34m"
n="\033[1;0m"
kagari_load(){
{
for (( i = $2 ; i <= $3 ; i++ )); do
sleep 0.1
echo "$i"
done
} | whiptail --backtitle "KAGARI v1.8 codename Penikung" --title "KAGARI v1.8 - Penikung" --gauge "$1" 11 88 0
}
kagari_about(){
whiptail --backtitle "KAGARI v1.8 codename Penikung" --textbox about.txt --scrolltext --title "kagari - about us" 30 80 0
}
kagari_license(){
whiptail --backtitle "KAGARI v1.8 codename Penikung" --textbox LICENSE.txt --scrolltext --title "kagari - General Public License v3" 40 88 0
}
kagari_install(){
kagari_load "[!] INSTALLING KAGARI PLEASE WAIT :* ..." 0 100
mkdir -p /opt/kagari
chmod 755 -R /opt/kagari
cp -r * /opt/kagari
cp autorun.sh /usr/bin/kagari
chmod 755 /usr/bin/kagari
}
kagari_uninstall(){
kagari_load "[!] UNINSTALLING KAGARI ..." 0 100
rm -rf /opt/kagari
rm /usr/bin/kagari
}
kagari_main(){
pil=$(whiptail --menu "[+] What Do You Want [?]" 13 50 0 \
Install kagari \
Uninstall kagari \
Read License \
About us \
3>&1 1>&2 2>&3 3>&1
)
clear
if [[ $pil == "Install" ]]; then
kagari_install
elif [[ $pil == "Uninstall" ]]; then
kagari_uninstall
elif [[ $pil == "About" ]]; then
kagari_about
elif [[ $pil == "Read" ]]; then
kagari_license
fi
}
whiptail --backtitle "[PENIKUNG] KAGARI v1.8 Installer" --title "KAGARI v1.8 - Penikung" --msgbox "[*] Welcome To kagari ! \n[*] Version : 1.8\n[*] Codename : Penikung\n[+]Author : shutdown57 a.k.a alinko" 11 70
kagari_license
kagari_about
kagari_main