Add build scripts for embedded (netboot) edition

This commit is contained in:
Floris Bos 2022-02-14 11:03:37 +01:00
parent 71754dd164
commit 25947fc199
223 changed files with 32637 additions and 1 deletions

View file

@ -0,0 +1,31 @@
#!/bin/sh
# Shorter startup sequence
# Standard busybox init
/bin/mount -t proc proc /proc
/bin/mount -o remount,rw,noatime /
/bin/mount -t sysfs sysfs /sys
/bin/mount -t devtmpfs dev /dev
/bin/hostname -F /etc/hostname
# udev
/sbin/udevd -d
udevadm trigger
udevadm settle --timeout=2
# Seed urandom with something
cat /proc/cpuinfo /sys/class/drm/*/edid > /dev/urandom
# dhcpcd
dhcpcd -f /etc/dhcpcd.conf --noarp 2>/dev/null &
if grep -q debugconsole /proc/cmdline; then
/sbin/getty -L console 0 vt100 &
fi
if grep -q blockingconsole /proc/cmdline; then
/sbin/getty -L console 0 vt100
fi
/etc/init.d/S99rpi-imager start