mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.76 - Build sysvinit
This commit is contained in:
parent
27d3cc483b
commit
7a98ed04d4
2 changed files with 42 additions and 10 deletions
19
scripts/chapter8/8.76-sysvinit.sh
Normal file
19
scripts/chapter8/8.76-sysvinit.sh
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
tar xf sysvinit-3.04.tar.xz
|
||||||
|
cd sysvinit-3.04
|
||||||
|
|
||||||
|
patch -Np1 -i ../sysvinit-3.04-consolidated-1.patch
|
||||||
|
|
||||||
|
make -j5
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd /sources
|
||||||
|
rm -rf sysvinit-3.04
|
|
@ -1437,15 +1437,28 @@ if [ $exit_status -ne 0 ]
|
||||||
then
|
then
|
||||||
stop_script "chapter8/8.74-e2fsprogs.sh"
|
stop_script "chapter8/8.74-e2fsprogs.sh"
|
||||||
fi
|
fi
|
||||||
# chapter8.75
|
|
||||||
# ===========
|
|
||||||
echo "Building sysklogd"
|
|
||||||
su -c "bash $SCRIPT/chapter8/8.75-sysklogd.sh"
|
|
||||||
|
|
||||||
# Exit on error
|
# chapter8.75
|
||||||
check_exit_code
|
# ===========
|
||||||
if [ $exit_status -ne 0 ]
|
echo "Building sysklogd"
|
||||||
then
|
su -c "bash $SCRIPT/chapter8/8.75-sysklogd.sh"
|
||||||
stop_script "chapter8/8.75-sysklogd.sh"
|
|
||||||
fi
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter8/8.75-sysklogd.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Chapter 8.76
|
||||||
|
# ============
|
||||||
|
echo "Building sysvinit"
|
||||||
|
su -c "bash $SCRIPT/chapter8/8.76-sysvinit.sh"
|
||||||
|
|
||||||
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter8/8.76-sysvinit.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue