-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |