# /etc/inittab — THE SHORTEST BOOT: /proc, then root's shell on the console.  Every line is a fork and an exec, each
# tens of millions of clocks on a simulated core; the mounts, mkdirs and links of buildroot's default are not needed
# here (devtmpfs is mounted by the kernel).  `login -f root` takes root as authenticated: busybox's prompt `~ #` is the
# mark that the boot is done.
::sysinit:/bin/mount -t proc proc /proc
ttyS0::respawn:/bin/login -f root
# ssh (dropbear) where the system has a network (eth0: the KX2's tpu_mcore with the EMAC), nothing forked elsewhere but this one
# shell: /dev/pts for the sessions' terminals, host keys made at the first connection (-R, into /etc/dropbear = /var/run/dropbear,
# which nothing else creates; the pool is the device tree's fresh
# rng-seed), keys only (-s: root has no password; /root/.ssh/authorized_keys from post-build.sh)
::once:/bin/sh -c '[ -e /proc/sys/net/ipv4/conf/eth0 ] || exit 0; mkdir -p /dev/pts /var/run/dropbear; mount -t devpts devpts /dev/pts; exec /usr/sbin/dropbear -R -s'
::shutdown:/bin/umount -a -r
