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:
0
iso/overlay-debug/etc/init.d/bee-audit-debug
Normal file → Executable file
0
iso/overlay-debug/etc/init.d/bee-audit-debug
Normal file → Executable file
0
iso/overlay-debug/etc/init.d/bee-network
Normal file → Executable file
0
iso/overlay-debug/etc/init.d/bee-network
Normal file → Executable file
0
iso/overlay-debug/etc/init.d/bee-nvidia
Normal file → Executable file
0
iso/overlay-debug/etc/init.d/bee-nvidia
Normal file → Executable file
0
iso/overlay-debug/etc/init.d/bee-sshsetup
Normal file → Executable file
0
iso/overlay-debug/etc/init.d/bee-sshsetup
Normal file → Executable file
13
iso/overlay-debug/etc/inittab
Normal file
13
iso/overlay-debug/etc/inittab
Normal 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
|
||||||
@@ -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; }
|
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.
|
# DHCP: run in background (-b) so udhcpc persists and retries when cable is connected later.
|
||||||
# -t 0: unlimited retries, -T 3: 3s per attempt.
|
# -t 0: unlimited retries, -T 3: 3s per attempt. No -q: stay running to renew lease.
|
||||||
udhcpc -i "$iface" -b -t 0 -T 3 -q 2>/dev/null &
|
udhcpc -i "$iface" -b -t 0 -T 3
|
||||||
log "DHCP started for $iface (background, will retry until lease acquired)"
|
log "DHCP started for $iface (background, will retry and renew lease)"
|
||||||
done
|
done
|
||||||
|
|
||||||
log "done"
|
log "done"
|
||||||
|
|||||||
Reference in New Issue
Block a user