Here is a version that takes advantage of the existing functions in /etc/init.d/knoppix-autoconfig to do the work and will function as a cheatcode.

IN

/etc/init.d/knoppix-autoconfig

CHANGE

# Set hostname
hostname Knoppix

TO

### hostname
# Allow hostname specification via commandline. The default hostname
# will be overridden via "hostname=Knoppix" boot commandline
HOSTNAME="$(getbootparam hostanme 2>/dev/null)"
[ -n "$HOSTNAME" ] || HOSTNAME="Knoppix"

Who feels like testing a remaster?