Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanVBW authored Nov 28, 2023
1 parent a3f619c commit 2b2ff0f
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions Scripts/menu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/bin/bash
echo -e "\033[96m+===================================================+\033[0m";
echo -e "\033[96m| _ _ ____ _ _ |\033[0m";
echo -e "\033[96m| | | (_)_ __ _ ___ _| _ \ _ __ ___ (_) __| ||\033[0m";
echo -e "\033[96m| | | | | _ \| | | \ \/ / | | | __/ _ \| |/ _ ||\033[0m";
echo -e "\033[96m| | |___| | | | | |_| |> <| |_| | | | (_) | | (_| ||\033[0m";
echo -e "\033[96m| |_____|_|_| |_|\__,_/_/\_\____/|_| \___/|_|\__,_||\033[0m";
echo -e "\033[96m| By Vivek W |\033[0m";
echo -e "\033[96m| |\033[0m";
echo -e "\033[96m| GitHub:- Github.com/AryanVBW |\033[0m";
echo -e "\033[96m| Site:- AryanVBW.github.io |\033[0m";
echo -e "\033[96m| Instagram:- Aryan_Technolog1es |\033[0m";
echo -e "\033[96m+===================================================+\033[0m";

echo -e "\e[1m\e[32mWelcome to the LinuxDroid!\e[0m"
declare -a os_list=()

# Find and extract OS names
for file in start-*.sh; do
os_name=$(echo "$file" | sed 's/start-\(.*\)\.sh/\1/')
os_list+=("$os_name")
done

# Add "Termux" and "Kali Nethunter" options
os_list+=("Termux" "Kali Nethunter")

# Display OS options
for ((i=0; i<${#os_list[@]}; i++)); do
echo "$((i+1)). ${os_list[i]}"
done

# Prompt user for the number of the OS they want to run
read -p "Enter the number of the OS you want to run: " os_number

# Validate user input
if [ "$os_number" -ge 1 ] && [ "$os_number" -le "${#os_list[@]}" ]; then
selected_os="${os_list[$((os_number-1))]}"

# Display the selected number and OS name
echo "You selected OS number $os_number: $selected_os"

# Execute the corresponding script or command
case $selected_os in
"Termux")
echo "Exiting Termux."
exit
;;
"Kali Nethunter")
echo "Executing nh command for Kali Nethunter (rootless)."
nh
;;
*)
script_name="start-$selected_os.sh"
if [ -f "$script_name" ]; then
echo "Executing ./$script_name"
./"$script_name"
else
echo "Script $script_name not found."
fi
;;
esac
else
echo "Invalid input. Please enter a valid number."
fi

0 comments on commit 2b2ff0f

Please sign in to comment.