From 758ddd111490120560970e16eb7bf066a3ff66bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krizs=C3=A1n=20P=C3=A9ter?= Date: Thu, 21 Nov 2024 15:41:55 +0100 Subject: [PATCH] Added blfsSetup control script --- blfsSetup.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 blfsSetup.sh diff --git a/blfsSetup.sh b/blfsSetup.sh new file mode 100755 index 0000000..610e4a7 --- /dev/null +++ b/blfsSetup.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Check if the lfs mount point folder is specified as the first argument +if [ -z "$1" ] +then + echo "Please specify the lfs mount point folder as the first argument!" >&2 + exit 1 +fi + +# Run lfsSetup and reboot if success otherwise power off in 5 minutes +if ! ./lfsSetup.sh "$1" "$2" ; then + sudo shutdown --poweroff +5 +else + sudo systemctl reboot +fi \ No newline at end of file