Skip to content

Commit 2b2ff0f

Browse files
authored
Add files via upload
1 parent a3f619c commit 2b2ff0f

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

Scripts/menu.sh

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/bash
2+
echo -e "\033[96m+===================================================+\033[0m";
3+
echo -e "\033[96m| _ _ ____ _ _ |\033[0m";
4+
echo -e "\033[96m| | | (_)_ __ _ ___ _| _ \ _ __ ___ (_) __| ||\033[0m";
5+
echo -e "\033[96m| | | | | _ \| | | \ \/ / | | | __/ _ \| |/ _ ||\033[0m";
6+
echo -e "\033[96m| | |___| | | | | |_| |> <| |_| | | | (_) | | (_| ||\033[0m";
7+
echo -e "\033[96m| |_____|_|_| |_|\__,_/_/\_\____/|_| \___/|_|\__,_||\033[0m";
8+
echo -e "\033[96m| By Vivek W |\033[0m";
9+
echo -e "\033[96m| |\033[0m";
10+
echo -e "\033[96m| GitHub:- github.com/AryanVBW |\033[0m";
11+
echo -e "\033[96m| Site:- AryanVBW.github.io |\033[0m";
12+
echo -e "\033[96m| Instagram:- Aryan_Technolog1es |\033[0m";
13+
echo -e "\033[96m+===================================================+\033[0m";
14+
15+
echo -e "\e[1m\e[32mWelcome to the LinuxDroid!\e[0m"
16+
declare -a os_list=()
17+
18+
# Find and extract OS names
19+
for file in start-*.sh; do
20+
os_name=$(echo "$file" | sed 's/start-\(.*\)\.sh/\1/')
21+
os_list+=("$os_name")
22+
done
23+
24+
# Add "Termux" and "Kali Nethunter" options
25+
os_list+=("Termux" "Kali Nethunter")
26+
27+
# Display OS options
28+
for ((i=0; i<${#os_list[@]}; i++)); do
29+
echo "$((i+1)). ${os_list[i]}"
30+
done
31+
32+
# Prompt user for the number of the OS they want to run
33+
read -p "Enter the number of the OS you want to run: " os_number
34+
35+
# Validate user input
36+
if [ "$os_number" -ge 1 ] && [ "$os_number" -le "${#os_list[@]}" ]; then
37+
selected_os="${os_list[$((os_number-1))]}"
38+
39+
# Display the selected number and OS name
40+
echo "You selected OS number $os_number: $selected_os"
41+
42+
# Execute the corresponding script or command
43+
case $selected_os in
44+
"Termux")
45+
echo "Exiting Termux."
46+
exit
47+
;;
48+
"Kali Nethunter")
49+
echo "Executing nh command for Kali Nethunter (rootless)."
50+
nh
51+
;;
52+
*)
53+
script_name="start-$selected_os.sh"
54+
if [ -f "$script_name" ]; then
55+
echo "Executing ./$script_name"
56+
./"$script_name"
57+
else
58+
echo "Script $script_name not found."
59+
fi
60+
;;
61+
esac
62+
else
63+
echo "Invalid input. Please enter a valid number."
64+
fi

0 commit comments

Comments
 (0)