init: massive rewrite to support SYS5 inittab
authorAlan Cox <alan@linux.intel.com>
Mon, 25 May 2015 22:45:57 +0000 (23:45 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 25 May 2015 22:45:57 +0000 (23:45 +0100)
commit5f2f5f85c1b16f2e6e118d74b2f3ee863e8b84fa
tree578915cfd9bd7efdc468e80801095d3ce3d5d26e
parentdda5e1dce39039c4925bd4f09a79affb4d7a76d4
init: massive rewrite to support SYS5 inittab

Need to add telinit support to it yet.

May also make sense to extend the built in getty to understand some
basic modem setting and perhaps integrate cron as an internal.

You will now need an inittab, somethng like

id:3:initdefault:
si::sysinit:/bin/sh
is:s:respawn:/bin/sh
rc::bootwait:/etc/rc
01:3:respawn:getty /dev/tty1
02:3:respawn:getty /dev/tty2
03:3:off:getty /dev/tty3

Other things to look at that fall from this are init arguments on the boot
line
Applications/util/init.c