#!/bin/sh cd keymaps for n in /usr/lib/kbd/keytables/*.map; do /usr/bin/loadkeys $n ../../install/readmap `basename $n .map`.kmap done loadkeys us ../../install/mapshdr *.kmap > hdr cat hdr *.kmap > keymaps gzip -9f keymaps