--- /dev/null
+#!/bin/bash
+
+#echo $@
+#set -x
+
+B="/mnt/misc/boot"
+#B="/boot"
+V=$1
+K=$2
+M=$3
+
+if [ -n "$KBUILD_OUTPUT_PREFIX" -a -d $KBUILD_OUTPUT_PREFIX/$V ] ; then
+ L=$KBUILD_OUTPUT_PREFIX/$V
+else
+ L="/usr/src/linux-$V"
+fi
+echo " INSTALL $B/bzImage-$V"
+
+if [ ! -f $L/$K ] ; then
+ if [ -f $L/arch/i386/boot/$K ] ; then
+ EX="/arch/i386/boot"
+ else
+ exit 1
+ fi
+fi
+
+if [ -f $L/$M ] ; then
+ M=$L/$M
+else
+ test -f $M || exit 1
+fi
+cp $L$EX/$K $B/bzImage-$V
+echo " INSTALL $B/System.map-$V"
+cp $M $B/System.map-$V
+
+case $V in
+ 2.6.*-gentoo*)
+ TARG="-gentoo-2.6"
+ ;;
+ 2.6*)
+ TARG="-2.6"
+ ;;
+ *)
+ TARG=""
+ ;;
+esac
+
+TARG_LAST=${TARG}-last
+
+if [ -L $B/bzImage$TARG ] ; then
+ IMG_LAST=$(readlink $B/bzImage$TARG)
+ echo " LN $B/bzImage$TARG_LAST"
+ ln -sf $IMG_LAST $B/bzImage$TARG_LAST
+fi
+
+echo " LN $B/bzImage$TARG"
+ln -sf bzImage-$V $B/bzImage$TARG
+
+if [ -L $B/System$TARG.map ] ; then
+ IMG_LAST=$(readlink $B/System$TARG.map)
+ echo " LN $B/System$TARG_LAST.map"
+ ln -sf $IMG_LAST $B/System$TARG_LAST.map
+fi
+
+echo " LN $B/System$TARG.map"
+ln -sf System.map-$V $B/System$TARG.map
+