mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-01-23 14:32:21 +08:00
15 lines
372 B
Bash
15 lines
372 B
Bash
|
#!/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
|