From 7a98ed04d407b07532d930f19429a983f9763c70 Mon Sep 17 00:00:00 2001 From: Aditya Date: Sat, 14 Jan 2023 21:25:03 +0530 Subject: [PATCH] Add 8.76 - Build sysvinit --- scripts/chapter8/8.76-sysvinit.sh | 19 ++++++++++++++++++ scripts/main.sh | 33 +++++++++++++++++++++---------- 2 files changed, 42 insertions(+), 10 deletions(-) create mode 100644 scripts/chapter8/8.76-sysvinit.sh diff --git a/scripts/chapter8/8.76-sysvinit.sh b/scripts/chapter8/8.76-sysvinit.sh new file mode 100644 index 0000000..d7b9b3c --- /dev/null +++ b/scripts/chapter8/8.76-sysvinit.sh @@ -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 diff --git a/scripts/main.sh b/scripts/main.sh index a7c7874..0fc94fc 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1437,15 +1437,28 @@ if [ $exit_status -ne 0 ] then stop_script "chapter8/8.74-e2fsprogs.sh" fi - # chapter8.75 - # =========== - echo "Building sysklogd" - su -c "bash $SCRIPT/chapter8/8.75-sysklogd.sh" - # Exit on error - check_exit_code - if [ $exit_status -ne 0 ] - then - stop_script "chapter8/8.75-sysklogd.sh" - fi +# chapter8.75 +# =========== +echo "Building sysklogd" +su -c "bash $SCRIPT/chapter8/8.75-sysklogd.sh" + +# 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