-
Notifications
You must be signed in to change notification settings - Fork 1
/
dotkilla.sh
91 lines (87 loc) · 3.1 KB
/
dotkilla.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
#!/bin/bash
echo " "
echo " "
echo " "
echo "▓█████▄ ▒█████ ▄▄▄█████▓ ██ ▄█▀ ██▓ ██▓ ██▓ ▄▄▄"
echo "▒██▀ ██▌▒██▒ ██▒▓ ██▒ ▓▒ ██▄█▒ ▓██▒▓██▒ ▓██▒ ▒████▄"
echo "░██ █▌▒██░ ██▒▒ ▓██░ ▒░ ▓███▄░ ▒██▒▒██░ ▒██░ ▒██ ▀█▄"
echo "░▓█▄ ▌▒██ ██░░ ▓██▓ ░ ▓██ █▄ ░██░▒██░ ▒██░ ░██▄▄▄▄██"
echo "░▒████▓ ░ ████▓▒░ ▒██▒ ░ ▒██▒ █▄░██░░██████▒░██████▒▓█ ▓██▒"
echo " ▒▒▓ ▒ ░ ▒░▒░▒░ ▒ ░░ ▒ ▒▒ ▓▒░▓ ░ ▒░▓ ░░ ▒░▓ ░▒▒ ▓▒█░"
echo " ░ ▒ ▒ ░ ▒ ▒░ ░ ░ ░▒ ▒░ ▒ ░░ ░ ▒ ░░ ░ ▒ ░ ▒ ▒▒ ░"
echo " ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░░ ░ ▒ ░ ░ ░ ░ ░ ░ ▒"
echo " ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░"
echo " ░"
echo " "
echo "*****************************************************************"
echo "|# #|"
echo "| ®2023 - 47LeCoste |"
echo "| 47lecoste@tuta.io * https://t.me/Quaranta7_Le_Coste |"
echo "| https://github.com/grugnoymeme |"
echo "|# #|"
echo "*****************************************************************"
echo ""
echo "Welcome to DotKilla."
echo "If you got here by mistake and would like to close it, type exit or quit, to exit at any time you need."
echo " "
while
printf "Insert your FLIPPER SD in your computer.\n"
printf "Is your FLIPPER SD mounted? <y/N>\n" response
read -r response
do
case $response in
[yY][eE][sS]|[yY])
if df | grep -iw "Flipper SD" > /dev/null
then
echo "Cleaning dot_files into \"/Volumes/FLIPPER SD\" ..."
sudo dot_clean -mn /Volumes/Flipper\ SD
echo "Well done!"
else
echo "Check double!! Maybe your SD is not well mounted in."
continue
fi
;;
[nN][oO]|[nN])
echo "Ok, so take it and mount it!"
continue
;;
[eE][xX][iI][tT])
break
exit 1
;;
[qQ][uU][iI][tT])
break
exit 1
;;
*)
echo "I didn't understand, I'm sorry, Try again..."
continue
;;
esac
printf "Do you want to eject your SD? <y/N>\n" ejecting
read -r ejecting
case $ejecting in
[yY][eE][sS]|[yY])
echo "Ejecting volume..."
sudo diskutil eject /Volumes/FLIPPER\ SD
echo "See you soon!"
break
exit
;;
[nN][oO]|[nN])
echo "Ok..Thank you.. See you soon!"
break
exit
;;
[eE][xX][iI][tT])
exit 1
;;
[qQ][uU][iI][tT])
exit 1
;;
*)
echo "I didn't understand, I'm sorry, Try again..."
continue
;;
esac
done