I don't know... this?
#!/bin/bash
while true; do
echo "Please choose a binary to run:"
echo "1) Binary 1"
echo "2) Binary 2"
echo "3) Binary 3"
echo "4) Binary 4"
echo "5) Exit"
read -p "Enter choice: " choice
case $choice in
1)
/path/to/binary1
;;
2)
/path/to/binary2
;;
3)
/path/to/binary3
;;
4)
/path/to/binary4
;;
5)
echo "Exiting."
exit 0
;;
*)
echo "Invalid choice, please try again."
;;
esac
done
=======
To use this script:
1. Copy the script into a file on your device. You might name it launcher.sh, for example.
2. Make the script executable by running chmod +x launcher.sh.
3. Set this script as the login shell for your user. To do this, you'll need to add the full path to the script to /etc/shells, and then use chsh -s /full/path/to/launcher.sh username to change the login shell for username.
4. Configure your system to automatically log in as username. The method for doing this depends on which display manager you're using. If you're using LightDM, for example, you can do this by editing /etc/lightdm/lightdm.conf.
When you boot the device, it should automatically log in as username and present the menu defined in the script.
#!/bin/bash
while true; do echo "Please choose a binary to run:" echo "1) Binary 1" echo "2) Binary 2" echo "3) Binary 3" echo "4) Binary 4" echo "5) Exit"
done=======
To use this script:
1. Copy the script into a file on your device. You might name it launcher.sh, for example.
2. Make the script executable by running chmod +x launcher.sh.
3. Set this script as the login shell for your user. To do this, you'll need to add the full path to the script to /etc/shells, and then use chsh -s /full/path/to/launcher.sh username to change the login shell for username.
4. Configure your system to automatically log in as username. The method for doing this depends on which display manager you're using. If you're using LightDM, for example, you can do this by editing /etc/lightdm/lightdm.conf.
When you boot the device, it should automatically log in as username and present the menu defined in the script.