I replaced the default /sbin/init by the following shell-script :
#!/bin/bash
#
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/root/bin:/usr/local/root/sbin
TERM=vt100
LINES=50
export PATH TERM LINES
ASCII_IMG=/usr/local/images/ascii.raw
MENU_CFG=/usr/local/menu/menu.cfg
mount -n -o remount,ro /
/bin/mount -n -o nocheck,rw /proc
/bin/mount -n -o nocheck,ro /dev/hda4 /drive0
hostname empeg
while :
do
/empeg/bin/player
CMD="1"
while [ -n "$CMD" ]
do
CMD=`blitmenu $ASCII_IMG $MENU_CFG`
eval $CMD
done
echo "Press q to terminate to a shell"
/usr/local/sbin/getkey q && /bin/bash
done
If I quit the player, my personal scrollmenu appears. After I quit this, a program called getkey is started, which waits 5 seconds for the q-key to be pressed.
When this happens in time, a shell is started.
This shell doesn't respond to any signal I send ( CTRL-C, CTRL-Z ).
I tried every stty setting there is, I used tset, set my TERM variable, I wrote some little programs that tried every ioctl found in the original init code, you name it and I tried. It seems bash isn't happy about being started first.
Guys at empeg, did you do anything specific to the empeg in your /sbin/init ?
Frank van Gestel