I'm trying to turn a headless Pi into a single purpose computer. The application I wrote uses a ncurses GUI and I want it to start on boot. The program also needs to be run on a separate 'screen' (same physical screen, seperate window) using the 'screen' application. The reason being so I can view the output of the same application on two separate screens.
I've used various renditions of /etc/init.d/example.sh, but nothing seems to work properly. The program starts, but not in a new screen. Instead, the terminal screen shows the last part of the boot sequence chopped up. If I exit the screen session, the Python application appears, but is buggy.
Here is an example of the shell script:
start) echo "Starting LAM!" screen -S test -X test python /home/pi/cur.py ;;
Almost everything above and below this is commented out and in the 'skeleton'. I've been trying to make this work for 3+ hours with no success. If someone could help me it would be greatly appreciated.