mirror of
https://github.com/RomainClaret/lfs-7.8.git
synced 2025-08-15 20:41:22 +00:00

/ update of the scripts for commun functions and variables for global use / update of the instructions_FR
41 lines
998 B
Bash
41 lines
998 B
Bash
#!/bin/bash
|
|
echo ""
|
|
echo "### --------------------------"
|
|
echo "### DO ALL PREPARATIONS ###"
|
|
echo "### CHAPTER 2-3-4.ALL ###"
|
|
echo "### Run all chapter 2, 3 and 4"
|
|
echo "### Must be run as \"root\""
|
|
echo "### --------------------------"
|
|
|
|
echo ""
|
|
echo "... Loading commun functions and variables"
|
|
if [ ! -f ./script-all_commun-functions.sh ]
|
|
then
|
|
echo "!! Fatal Error 1: './script-all_commun-functions.sh' not found."
|
|
exit 1
|
|
fi
|
|
source ./script-all_commun-functions.sh
|
|
|
|
if [ ! -f ./script-all_commun-variables.sh ]
|
|
then
|
|
echo "!! Fatal Error 1: './script-all_commun-variables.sh' not found."
|
|
exit 1
|
|
fi
|
|
source ./script-all_commun-variables.sh
|
|
|
|
echo ""
|
|
echo "... Validating the environment"
|
|
is_user root
|
|
if [ $( readlink -f /bin/sh ) != "/bin/bash" ]
|
|
then
|
|
echo "!! Fatal Error 3: /bin/sh is not symlinked to /bin/bash"
|
|
exit 3
|
|
fi
|
|
|
|
./2.all-root_make-new-partitions.sh
|
|
./3.all-root_packages-patches.sh
|
|
./4.all-root_final-preparations.sh
|
|
|
|
echo ""
|
|
echo "### END OF CHAPTER 2-3-4.ALL ###"
|