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,6 +1437,7 @@ if [ $exit_status -ne 0 ]
|
|||
then
|
||||
stop_script "chapter8/8.74-e2fsprogs.sh"
|
||||
fi
|
||||
|
||||
# chapter8.75
|
||||
# ===========
|
||||
echo "Building sysklogd"
|
||||
|
@ -1449,3 +1450,15 @@ fi
|
|||
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