aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2021-09-08 11:59:25 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-09-08 11:59:38 -0500
commit46a0bfedd14001bd6df2e3ca7b96261ddabdfb71 (patch)
tree36ac9a536fa35db0c76e1c086588323ff74e486a /tools
parent803aa1c637c42352c05a520dbb02bee6c03ccf75 (diff)
build: fix symlinks
Diffstat (limited to 'tools')
-rwxr-xr-xtools/meson_runlevels.sh7
1 files changed, 7 insertions, 0 deletions
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}"