From ffd7994da3b5c8021aa040f6ca4244f391eb9a0a Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 30 Mar 2022 00:50:53 +0100 Subject: fixed initd scripts for udev and sysklogd --- repo/system/openrc.xibuild | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'repo/system/openrc.xibuild') diff --git a/repo/system/openrc.xibuild b/repo/system/openrc.xibuild index d7c061b..899a19e 100644 --- a/repo/system/openrc.xibuild +++ b/repo/system/openrc.xibuild @@ -43,7 +43,7 @@ prepare () { build () { export MKZSHCOMP=yes export MKBASHCOMP=yes - make LIBDIR=/lib LIBEXECDIR=/lib/rc + make LIBDIR=/lib LIBEXECDIR=/lib/rc MKSYSVINIT=yes } check () { @@ -51,18 +51,19 @@ check () { } package () { - make LIBEXECDIR=/lib/rc DESTDIR="$PKG_DEST/" install + make LIBEXECDIR=/lib/rc DESTDIR="$PKG_DEST/" MKSYSVINIT=yes install - rm -f "$PKG_DEST"/sbin/openrc-init "$PKG_DEST"/sbin/openrc-shutdown + # remove -n from ln in mtab + sed -i "s/ln -snf/ln -sf/g" $PKG_DEST/etc/init.d/mtab - # we cannot have anything turned on by default - rm -f "$PKG_DEST"/etc/runlevels/*/* + ln -s openrc-init $PKG_DEST/sbin/init # we still use our ifup/ifdown based net config - rm -f "$PKG_DEST"/etc/conf.d/network "$PKG_DEST"/etc/init.d/network + #rm -f "$PKG_DEST"/etc/conf.d/network "$PKG_DEST"/etc/init.d/network + + # our hostname init script reads hostname from /etc/hostname + rm -f "$pkgdir"/etc/conf.d/hostname - # our hostname init script reads hostname from /etc/hostname - rm -f "$PKG_DEST"/etc/conf.d/hostname # we override some of the scripts for i in *.initd; do @@ -95,6 +96,12 @@ package () { # remove deprecated /sbin/runscript to avoid conflict with minicom rm $PKG_DEST/sbin/runscript + + #spawn ttys + for x in tty1 tty2 tty3 tty4 tty5 tty6; do + ln -sf agetty $PKG_DEST/etc/init.d/agetty.$x + done + } postinstall () { -- cgit v1.2.1