While booting Knoppix only busybox is available (here '#!/bin/sh' is a symlink to busybox). After completion of bootprocess you can use Bash.

Within the init-script of minirt.gz you can see, how KK solved the problem using the function "checkbootparam()"

In the script knoppix.sh you can use a line like this:
Code:
cat /proc/cmdline | grep -q "no_myscript" && exit