Doing "text mode 'splash' game" during boot.
Posted
by
Vi
on Super User
See other posts from Super User
or by Vi
Published on 2010-12-22T01:40:35Z
Indexed on
2010/12/22
1:56 UTC
Read the original article
Hit count: 196
Sometimes I want to do something (for example, playing a simple text-mode game) while the system is booting up. This is especially useful when lengthy reiserfs transaction replays are happening.
Current hacky way of doing it is:
- Put the program on initramfs.
- Before running /sbin/init, "openvt 2 /my/program".
- Turn off messages from kernel (sysrq 0)
- Override /dev/console with /dev/null (to prevent boot messages).
The problems are:
- There are STILL some messages interfering with program output.
- I can't see boot messages by switching to that virtual terminal back.
- After finishing the boot sequence, /dev/tty2 ends up being attached both to getty and my program.
How to do it properly without of running graphical splashes?
The system is Linux Debian Squeeze, no dependency based sysv scripts.
© Super User or respective owner