Added blfsSetup control script

This commit is contained in:
Krizsán Péter 2024-11-21 15:41:55 +01:00
parent 6ea23a06ea
commit 758ddd1114

15
blfsSetup.sh Executable file
View File

@ -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