From 2197dc89875fd32ff6ff422a0917164a5f3c45e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Schl=C3=BCter?= Date: Wed, 24 Jan 2018 12:19:26 +0100 Subject: itzks-installscript: Add alternate script to install libdvdcss2 because the old one ended the whole script if "no" was selected. --- install-itzks-workstation | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'install-itzks-workstation') 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 #################### -- cgit v1.2.3