In Debian Sqeeze, I created a script called
/etc/init.d/capslock that contains this:
#!/bin/sh echo "Remapping Caps Lock key to Escape" setkeycodes 0x3a 1 echo " ...done"
I made it executable, and linked it to /etc/rc2.d/S95capslock. When I run it from the command line, it works. But it doesn't fire on a reboot for some reason. Am I missing a step?