the cat command should be placed after the mount-commands and before execing the original init.
one way to do it is :
# rw
# echo'#!/bin/bash' > /sbin/init.new
# echo '/bin/mount -n -o nocheck,rw /proc' >> /sbin/init.new
# echo '/bin/mount -n -o nocheck,ro /dev/hda4 /drive0' >> /sbin/init.new
# echo '[ -e /proc/ide/hdb ] && /bin/mount -n -o nocheck,ro /dev/hdc4 /drive1 ' >> /sbin/init.new
# echo 'cat /tmp/CDSR80_IR.txt > /proc/empeg_ir ' >> /sbin/init.new
# echo 'cd /usr/local/displayserver' >> /sbin/init.new
# echo './displayserver' >> /sbin/init.new
# echo 'exec /sbin/init.before_displayserver' >> /sbin/init.new
# chmod +x /sbin/init.new
# ro
now test your new init :
# /sbin/init.new
this will give an error message if displayserver is already loaded, but your mappings should be read and the player started.
If you're sure the new init works, stop the player app again and replace the old init with your new init:
# rw
# mv /sbin/init.new /sbin/init
# ro
and reboot your empeg.
Frank van Gestel