Skip to content

Instantly share code, notes, and snippets.

@raultm
Last active June 16, 2017 08:08
Show Gist options
  • Save raultm/1095716dfd8223fd3e4daf223326a018 to your computer and use it in GitHub Desktop.
Save raultm/1095716dfd8223fd3e4daf223326a018 to your computer and use it in GitHub Desktop.
Menú para recopilar scripts/tareas para institutos de Extremadura
#!/bin/bash
# Permlaink to GIST raw https://gist.github.com/atenni/5604615
# bash <(curl -s https://gist.githubusercontent.com/raultm/1095716dfd8223fd3e4daf223326a018/raw)
# SOURCE Bashstyling (https://gist.github.com/raultm/c68dca2d076273f569b51653503ead05)
source <(curl -s https://gist.githubusercontent.com/raultm/c68dca2d076273f569b51653503ead05/raw)
siaticmenu(){
while :
do
h1 "Tareas SIATIC:"
li " 1) Setup desde clonación de imagen de 64 bits"
li " 2) Setup Wifi"
li " 3) Generar archivo musthave para pkgsync"
li " 4) Exit"
echo -n "Introduce tu opción:"
read c
case $c in
"1")
bash <(curl -s https://gist.githubusercontent.com/raultm/43914bbf1f14844c9d6836e47753c640/raw)
;;
"2")
bash <(curl -s https://gist.githubusercontent.com/raultm/f57968501b4f547dae7d2289e38a5794/raw)
;;
"3")
bash <(curl -s https://gist.githubusercontent.com/raultm/80573a11185b6f0c0503b7fbbe6799c9/raw)
;;
"4")
break
;;
*)
echo "invalid answer, please try again"
;;
esac
done
}
while :
do
h1 "¿La tarea la vas a realizar en...?:"
li " 1) SIATIC "
li " 2) Exit"
echo -n "Introduce tu opción:"
read choice
case $choice in
"1")
siaticmenu
;;
"2")
exit
;;
*)
echo "invalid answer, please try again"
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment