From 46a0bfedd14001bd6df2e3ca7b96261ddabdfb71 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 8 Sep 2021 11:59:25 -0500 Subject: build: fix symlinks --- tools/meson_runlevels.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') diff --git a/tools/meson_runlevels.sh b/tools/meson_runlevels.sh index 7cf068a9..e5f5aeaa 100755 --- a/tools/meson_runlevels.sh +++ b/tools/meson_runlevels.sh @@ -7,6 +7,7 @@ os="$1" net="$2" rc_libexecdir="$3" sysconfdir="$4" +sysvinit="$5" init_d_dir="${sysconfdir}/init.d" leveldir="${sysconfdir}/runlevels" @@ -90,5 +91,11 @@ if ! test -d "${DESTDIR}${shutdowndir}"; then ln -snf "${init_d_dir}/$x" "${DESTDIR}${shutdowndir}/$x" done fi +if test "${sysvinit}" = yes && test "${os}" = Linux; then \ + for x in tty1 tty2 tty3 tty4 tty5 tty6; do + ln -snf "${init_d_dir}/agetty" "${DESTDIR}/${init_d_dir}/agetty.$x" + ln -snf "${init_d_dir}/agetty.$x" "${DESTDIR}/${defaultdir}/agetty.$x" + done; +fi ln -snf "${rc_libexecdir}"/sh/functions.sh "${DESTDIR}/${init_d_dir}" -- cgit v1.2.3