• ntp: robust /etc/ntp.conf symlink, safe defaults, avoid nounset, keep BusyBox CLI -p usage • network: wrap dhcpcd to create dhcpcd user/group if missing; run as root if needed • console: set getty console to 115200 vt100
8 lines
384 B
Bash
Executable File
8 lines
384 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
# Ensure dhcpcd user/group exist (some builds expect to drop privileges)
|
|
if ! getent group dhcpcd >/dev/null 2>&1; then addgroup -S dhcpcd 2>/dev/null || true; fi
|
|
if ! getent passwd dhcpcd >/dev/null 2>&1; then adduser -S -H -D -s /sbin/nologin -G dhcpcd dhcpcd 2>/dev/null || true; fi
|
|
# Exec dhcpcd (will run as root if it cannot drop to dhcpcd user)
|
|
exec dhcpcd ""
|