mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
31 lines
635 B
Bash
Executable file
31 lines
635 B
Bash
Executable file
#!/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 ttyAMA0 0 vt100 &
|
|
fi
|
|
|
|
if grep -q blockingconsole /proc/cmdline; then
|
|
/sbin/getty -L ttyAMA0 0 vt100
|
|
fi
|
|
|
|
/etc/init.d/S99rpi-imager start
|