mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Add build scripts for embedded (netboot) edition
This commit is contained in:
parent
71754dd164
commit
25947fc199
223 changed files with 32637 additions and 1 deletions
31
embedded/imager/board/overlay/init
Executable file
31
embedded/imager/board/overlay/init
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue