From b90195586ce9d1efe6cdf19455be70743fb613f5 Mon Sep 17 00:00:00 2001 From: knightsub9 Date: Tue, 30 Jun 2026 16:03:09 +0200 Subject: [PATCH] add `/post_installation_script/bundles/` and `/post_installation_script/bundles/template.sh` and add section and example for bundles in `/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh` and make usage of "bundles" possible (for modularity) --- .../Nachinstallationsarbeiten_LC_Esslingen.sh | 3 +++ post_installation_script/bundles/template.sh | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 post_installation_script/bundles/template.sh diff --git a/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh b/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh index fe2b42c..5994173 100755 --- a/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh +++ b/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh @@ -253,6 +253,9 @@ if question_answered_with_yes " ### Installiere Signal? ###"; then # fi +# execute bundles +# example: $SCRIPT_DIR/bundles/template.sh + echo echo "###############################" echo "######### Skript ENDE #########" diff --git a/post_installation_script/bundles/template.sh b/post_installation_script/bundles/template.sh new file mode 100755 index 0000000..c88af98 --- /dev/null +++ b/post_installation_script/bundles/template.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# A shellscript meant to be used as subscript of `/post_installation_script/Nachinstallationsarbeiten_LC_Esslingen.sh`. + +SCRIPT_DIR="$(cd "$(dirname "$0")"/.. && pwd)" +source "$SCRIPT_DIR/common.sh" + +# please seperate stuff that doesn't belong together and maybe put short descriptions before those blocks (as comments) like in the following example: +# # Steam and Steam-related packages +# echo '### Steam ###' +# if question_answered_with_yes " ### Installiere Steam? ###"; then +# echo "### Steam ###" +# sudo apt install steam-installer +# # sudo flatpak install com.valvesoftware.Steam +# if question_answered_with_yes " ### Installiere Steam-Geräte-Unterstützungspaket (z. B. für Steam-Controller)? ###"; then +# echo "### Steam-Devices ###" +# sudo apt install steam-devices +# fi +# fi +# echo '### Ende Steam ###'