diff options
-rw-r--r-- | install-itzks-workstation | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/install-itzks-workstation b/install-itzks-workstation index adce7c4..ab7fa69 100644 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -70,15 +70,27 @@ apt-get install --yes --force-yes ocsinventory-agent itzks-systems.do_preseed apt-get install itzks-systems-workstation +# FIXME: If "no" is selected it ends the whole script. # Install libdvdcss2 if needed -while true; do - read -p "Verfügt der Rechner über ein DVD-Laufwerk bzw. sollen DVDs abgespielt werden können? [j/n] " yn - case $yn in - [Jj]* ) apt install libdvdcss2; break;; - [Nn]* ) exit;; - * ) echo "Bitte antworte mit Ja oder Nein.";; - esac -done +#while true; do +# read -p "Verfügt der Rechner über ein DVD-Laufwerk bzw. sollen DVDs abgespielt werden können? [j/n] " yn +# case $yn in +# [Jj]* ) apt install libdvdcss2; break;; +# [Nn]* ) exit;; +# * ) echo "Bitte antworte mit Ja oder Nein.";; +# esac +#done + +# Alternate install libdvdcss2 if needed +read -p "Verfügt der Rechner über ein DVD-Laufwerk bzw. sollen DVDs abgespielt werden könnne? (j/n)? " answer +case ${answer:0:1} in + y|Y|j|J ) + apt install libdvdcss2 + ;; + * ) + : + ;; +esac #################### |