diff --git a/board/myna-player-odyssey/rootfs_overlay/etc/inittab b/board/myna-player-odyssey/rootfs_overlay/etc/inittab new file mode 100644 index 0000000..5c12b72 --- /dev/null +++ b/board/myna-player-odyssey/rootfs_overlay/etc/inittab @@ -0,0 +1,33 @@ +# /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:/sysinit + +# now run any rc scripts +::sysinit:/etc/init.d/rcS + +# Put a getty on the serial port +ttySTM0::respawn:/sbin/getty -L ttySTM0 0 vt100 # GENERIC_SERIAL + +# start up runit +null::respawn:/bin/runsvdir -P /var/services + +# Stuff to do for the 3-finger salute +#::ctrlaltdel:/sbin/reboot + +# Stuff to do before rebooting +::shutdown:/bin/killall -1 runsvdir +::shutdown:/bin/umount -a -r diff --git a/board/myna-player-odyssey/rootfs_overlay/sysinit b/board/myna-player-odyssey/rootfs_overlay/sysinit new file mode 100755 index 0000000..9836576 --- /dev/null +++ b/board/myna-player-odyssey/rootfs_overlay/sysinit @@ -0,0 +1,13 @@ +#!/bin/sh +/bin/mount -t proc none /proc& +(mkdir -p /dev/pts && /bin/mount -t devpts none /dev/pts)& +(mkdir -p /dev/shm && /bin/mount -t tmpfs none /dev/shm)& +/bin/mount -t sysfs none /sys& +/bin/mount -t tmpfs none /tmp& +/bin/mount -t tmpfs none /run& +#/bin/ln -sf /proc/self/fd /dev/fd& +#/bin/ln -sf /proc/self/fd/0 /dev/stdin& +#/bin/ln -sf /proc/self/fd/1 /dev/stdout& +#/bin/ln -sf /proc/self/fd/2 /dev/stderr& +/bin/hostname -F /etc/hostname& +wait