summaryrefslogtreecommitdiff
path: root/repo/system/openrc.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-30 00:50:53 +0100
committerdavidovski <david@davidovski.xyz>2022-03-30 00:50:53 +0100
commitffd7994da3b5c8021aa040f6ca4244f391eb9a0a (patch)
tree3492107ce7a1dd98ab64e9a8a5dd6e19fb544a6c /repo/system/openrc.xibuild
parentd28d2287b138ede0591d9facd5dbe7ca4f329f83 (diff)
fixed initd scripts for udev and sysklogd
Diffstat (limited to 'repo/system/openrc.xibuild')
-rw-r--r--repo/system/openrc.xibuild23
1 files changed, 15 insertions, 8 deletions
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 () {