mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-02-02 23:07:19 +08:00
Added blfsSetup control script
This commit is contained in:
parent
6ea23a06ea
commit
758ddd1114
15
blfsSetup.sh
Executable file
15
blfsSetup.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user