mirror of
https://codeberg.org/knightsub9/lxcafe.git
synced 2026-07-19 19:30:16 +02:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b90195586c | ||
|
|
4fcfcbe06b |
@@ -2,21 +2,6 @@
|
|||||||
|
|
||||||
SCRIPT_VERSION="v11"
|
SCRIPT_VERSION="v11"
|
||||||
|
|
||||||
question_answered_with_yes() {
|
|
||||||
local prompt="$1"
|
|
||||||
local ans
|
|
||||||
printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt"
|
|
||||||
read -r ans
|
|
||||||
case "$ans" in
|
|
||||||
j | J | ja | y | Y) return 0 ;;
|
|
||||||
n | N | "") return 1 ;;
|
|
||||||
*)
|
|
||||||
echo "Abbruch."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
#####################################
|
#####################################
|
||||||
#### Nachinstallationsarbeiten
|
#### Nachinstallationsarbeiten
|
||||||
@@ -224,6 +209,7 @@ echo
|
|||||||
echo "#### Chromium Browser installieren:"
|
echo "#### Chromium Browser installieren:"
|
||||||
if question_answered_with_yes " ### Installiere Chromium? ###"; then
|
if question_answered_with_yes " ### Installiere Chromium? ###"; then
|
||||||
echo "### Chromium ###"
|
echo "### Chromium ###"
|
||||||
|
sudo apt install chromium-browser
|
||||||
sudo apt install chromium
|
sudo apt install chromium
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -267,6 +253,9 @@ if question_answered_with_yes " ### Installiere Signal? ###"; then
|
|||||||
#
|
#
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# execute bundles
|
||||||
|
# example: $SCRIPT_DIR/bundles/template.sh
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "###############################"
|
echo "###############################"
|
||||||
echo "######### Skript ENDE #########"
|
echo "######### Skript ENDE #########"
|
||||||
|
|||||||
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# <short description here>
|
||||||
|
# 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 ###'
|
||||||
Executable
+16
@@ -0,0 +1,16 @@
|
|||||||
|
# functions and variables for use in multiple files ("common" functions and variables)
|
||||||
|
|
||||||
|
question_answered_with_yes() {
|
||||||
|
local prompt="$1"
|
||||||
|
local ans
|
||||||
|
printf '%b\n Geben Sie j oder n ein und die Eingabetaste,\n Abbruch mit jeder anderen Taste ... [j/N]: ' "$prompt"
|
||||||
|
read -r ans
|
||||||
|
case "$ans" in
|
||||||
|
j | J | ja | y | Y) return 0 ;;
|
||||||
|
n | N | "") return 1 ;;
|
||||||
|
*)
|
||||||
|
echo "Abbruch."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user