From 2b65cdd2ddc70b9204ca46fde84bfe1a266c3840 Mon Sep 17 00:00:00 2001 From: eichehome Date: Tue, 25 Jul 2023 19:54:43 +0200 Subject: [PATCH] =?UTF-8?q?Ein=20Script=20zum=20Testen=20von=20funktionali?= =?UTF-8?q?t=C3=A4ten=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.uefi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test.uefi diff --git a/test.uefi b/test.uefi new file mode 100644 index 0000000..13a6922 --- /dev/null +++ b/test.uefi @@ -0,0 +1,20 @@ +#!/bin/bash + +# VARIABLEN: +DRIVE="/dev/vda" +ESP="512M" +USR="10G" +ROOT_LABEL="root" +USR_LABEL="usr" +ESP_LABEL="EFI" + +#---------------------------# + +CHECK_EXISTENCE_OUTPUT=$(lsblk -o NAME | grep -c "^${DRIVE//\/dev\/}") + +if [[ ${CHECK_EXISTENCE_OUTPUT} -lt 1 ]]; then + echo "Platte existiert nicht, Abbruch!" + exit 1 +else + echo "Platte existiert , Weitermachen." +fi \ No newline at end of file