summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schlüter <bschlueter@posteo.de>2018-01-24 12:19:26 +0100
committerBenjamin Schlüter <bschlueter@posteo.de>2018-01-24 12:19:26 +0100
commit2197dc89875fd32ff6ff422a0917164a5f3c45e5 (patch)
tree352c01ac9be965942fc8b4291dc538bc3c9f1d3e
parente4c54ef797c1758b1e87799b899fb5f0d646f3aa (diff)
downloaditzks-install-script-2197dc89875fd32ff6ff422a0917164a5f3c45e5.tar.gz
itzks-install-script-2197dc89875fd32ff6ff422a0917164a5f3c45e5.tar.bz2
itzks-install-script-2197dc89875fd32ff6ff422a0917164a5f3c45e5.zip
itzks-installscript: Add alternate script to install libdvdcss2 because the old one ended the whole script if "no" was selected.
-rw-r--r--install-itzks-workstation28
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
####################