zinit: stabilize ntp/network/getty runtime
• 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
This commit is contained in:
7
config/zinit/init/network.sh
Executable file
7
config/zinit/init/network.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/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 ""
|
||||
Reference in New Issue
Block a user