fix: init scripts not executable, add autologin and build version in motd

- bee-* init.d scripts had mode 644 in git — OpenRC silently skipped them,
  causing bee-network/bee-nvidia/bee-audit to never start at boot
- bee-network.sh also lacked executable bit
- Remove -q from udhcpc (was quitting after first lease, no renewal)
- Add autologin root on tty1 via /etc/inittab
- Inject build date + git commit + versions into motd at build time

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 22:33:45 +03:00
parent 2235a89364
commit c908809991
6 changed files with 16 additions and 3 deletions

0
iso/overlay-debug/etc/init.d/bee-audit-debug Normal file → Executable file
View File

0
iso/overlay-debug/etc/init.d/bee-network Normal file → Executable file
View File

0
iso/overlay-debug/etc/init.d/bee-nvidia Normal file → Executable file
View File

0
iso/overlay-debug/etc/init.d/bee-sshsetup Normal file → Executable file
View File

View File

@@ -0,0 +1,13 @@
::sysinit:/sbin/openrc sysinit
::sysinit:/sbin/openrc boot
::wait:/sbin/openrc default
# Autologin on tty1
tty1::respawn:/sbin/getty -a root 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
ttyS0::respawn:/sbin/getty -L 115200 ttyS0 vt100
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/openrc shutdown

View File

@@ -23,9 +23,9 @@ for iface in $interfaces; do
ip link set "$iface" up 2>/dev/null || { log "WARN: could not bring up $iface"; continue; }
# DHCP: run in background (-b) so udhcpc persists and retries when cable is connected later.
# -t 0: unlimited retries, -T 3: 3s per attempt.
udhcpc -i "$iface" -b -t 0 -T 3 -q 2>/dev/null &
log "DHCP started for $iface (background, will retry until lease acquired)"
# -t 0: unlimited retries, -T 3: 3s per attempt. No -q: stay running to renew lease.
udhcpc -i "$iface" -b -t 0 -T 3
log "DHCP started for $iface (background, will retry and renew lease)"
done
log "done"