From: Jiří Matěják Date: Fri, 4 May 2018 11:14:05 +0000 (+0200) Subject: add apps to inittab X-Git-Url: https://rtime.felk.cvut.cz/gitweb/coffee/buildroot.git/commitdiff_plain/550d23385c4d5bb496e8eb950c583337589294db add apps to inittab --- diff --git a/board/advantech/imx6q-rsb4411-a1/rootfs_overlay/etc/inittab b/board/advantech/imx6q-rsb4411-a1/rootfs_overlay/etc/inittab new file mode 100644 index 0000000000..ca1e252c22 --- /dev/null +++ b/board/advantech/imx6q-rsb4411-a1/rootfs_overlay/etc/inittab @@ -0,0 +1,38 @@ +# /etc/inittab +# +# Copyright (C) 2001 Erik Andersen +# +# Note: BusyBox init doesn't support runlevels. The runlevels field is +# completely ignored by BusyBox init. If you want runlevels, use +# sysvinit. +# +# Format for each entry: ::: +# +# id == tty to run on, or empty for /dev/console +# runlevels == ignored +# action == one of sysinit, respawn, askfirst, wait, and once +# process == program to run + +# Startup the system +::sysinit:/bin/mount -t proc proc /proc +::sysinit:/bin/mount -o remount,rw / +::sysinit:/bin/mkdir -p /dev/pts +::sysinit:/bin/mkdir -p /dev/shm +::sysinit:/bin/mount -a +::sysinit:/bin/hostname -F /etc/hostname +# now run any rc scripts +::sysinit:/etc/init.d/rcS + +# Put a getty on the serial port +ttymxc0::respawn:/sbin/getty -L ttymxc0 0 vt100 # GENERIC_SERIAL + +# Stuff to do for the 3-finger salute +#::ctrlaltdel:/sbin/reboot + +# Stuff to do before rebooting +::shutdown:/etc/init.d/rcK +::shutdown:/sbin/swapoff -a +::shutdown:/bin/umount -a -r + +::respawn:/usr/bin/mtaio +::respawn:/usr/bin/mtbrowser.sh