I'm not sure how the knoppix.sh works, but I know that you can add a script to rc5.d. This will run when it switches to runlevel 5, basically everytime you boot into the GUI. The location should be source/KNOPPIX/etc/rc5.d/

My script is linked back to ../init.d/ to match other distros.