diff --git a/init_scripts.sh b/init_scripts.sh new file mode 100644 index 0000000..987690e --- /dev/null +++ b/init_scripts.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +#verify run as root or sudo +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi + +echo "/////////////////////////////////////" +echo "Benvingut a l'instalador d'Scripts" +echo "/////////////////////////////////////" + +# Choose script to install +echo "0) Sortir de l'instalador" +echo "1) Notificador d'actualitzacions" +echo "2) Escaneig de rootkits amb RK Hunter" +echo "3) Escaneig de rootkits amb CHK Rootkit" +echo "4) Escaneig de virus amb ClamAV" + +finished=false +while [ "$finished" != "true" ] +do + read -p 'Indica quin script vols instal·lar: ' SCRIPT_NUM + case $SCRIPT_NUM in + ("") echo "El número no pot ser buit";; + (*[!0-9]*) echo "Has d'introduir un número";; + (*[5-9]*) echo "Aquest número d'script no existeix";; + (*) finished=true #echo "just numeric";; + esac +done diff --git a/updates-notifier.sh b/updates_notifier.sh old mode 100755 new mode 100644 similarity index 100% rename from updates-notifier.sh rename to updates_notifier.sh