#!/bin/bash set -o errexit # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} cd ${LFS_TMP}/${1} sed -i 's@Sending processes@& configured via /etc/inittab@g' src/init.c # A maintained version of the wall program was installed earlier by # Util-linux-ng. Suppress the installation of Sysvinit's version: sed -i -e 's/utmpdump wall/utmpdump/' \ -e 's/mountpoint.1 wall.1/mountpoint.1/' src/Makefile make -j ${MAKEJOBS} -C src make -C src install # /etc/inittab was installed in stage 1 exit $?