commit 046f260398de50fde0d21b8b6da7edd26c104540
parent c9e8258688c4d123e53c602ea72c1f0a3248a605
Author: torter <koubbamohamedrayan@gmail.com>
Date: Sat, 14 Nov 2026 19:07:46 +0000
init: the getty gets its own session; network drivers load at boot
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/files/etc/init.conf b/files/etc/init.conf
@@ -6,7 +6,7 @@ hostname = chamesle
boot-services = {udev,modules,network}
# kernel modules to load by hand
-modules = {}
+modules = {virtio_net,e1000,e1000e,r8169,8139too,igb}
# $tty is the name of the line; getty-NAME overrides getty for one line
ttys = {tty1,ttyS0}
diff --git a/files/sbin/init b/files/sbin/init
@@ -22,7 +22,7 @@ respawn() {
trap - INT TERM USR1 USR2
while :; do
t=$SECONDS
- eval "$2"
+ eval "setsid $2"
[ $((SECONDS - t)) -gt 5 ] || sleep 5
done
) &