Okay, so i have this problem, i have a raspberry with rasbian lite (now i have openbox running on) and i do a few script for my client. But i have a question and a problem.... i got the logs file, that file need to open automatically the browser without having to do all the steps again at the next startup(i run this bash file every start up automatically)
thats my script (im from italy ):
#!/bin/bash
clear
if [ -f logs.sh ];
then echo "sarai reindirizzato alla tua pagina di default di "; cat logs.sh
exit 0
fi
echo "Da che scuola provieni?"
sleep 1
echo "Sono disponibili queste opzioni:"
sleep 1
echo "[1] CPC Belli"
echo "[2] CPT Locarno"
echo "[3] CPC Chiasso"
echo "[4] SPSE Tenero"
sleep 1
testo="Okay ora verrai reindirizzato nel sito web di"
echo "Inserisci il numero della scuola che frequenti:"
read NUM
case $NUM in
1) echo "$testo CPC Bellinzona"
chromium-browser £INTERNET WEBSITE£
;;
2) echo "$testo CPT di Locarno"
chromium-browser £INTERNET WEBSITE£
;;
3) echo "$testo CPC di Chiasso"
chromium-browser £INTERNET WEBSITE£
;;
4) echo "$testo SPSE Tenero"
chromium-browser £INTERNET WEBSITE£
;;
*) echo "La tua scuola non è presente in lista"
esac
echo "chromium-browser $NUM" >> logs.sh
exit 0
this is the error, its not a error but i dont know how to set in default the person choise in the case
sarai reindirizzato alla tua pagina di default di $1
i know im bad in English but please help me!!!!