-#!/bin/bash
-if [[ $2 == */blackfin/* ]] ; then
- mmv() { [[ -e $1 ]] && mv "$1" "$2" ; }
+!/bin/bash
+# 2.6.35.4-default arch/s390/boot/image System.map Kerntypes /boot
+
+mmv() { [[ -e $1 ]] && mv "$1" "$2" ; }
+
+ver=$1
+img=$2
+map=$3
+# $4 == ??
+dir=$5
+
+case ${img} in
+*/blackfin/*)
mmv $4/uImage $4/uImage.old
- mmv $4/$3 $4/$3.old
+ mmv $4/${map} $4/${map}.old
+
+ cp ${img} $4/uImage
+ cp ${map} $4/${map}
+ exit 0
+ ;;
- cp $2 $4/uImage
- cp $3 $4/$3
+*/s390/*)
+ cp ${img} ${dir}/image-${ver}
+ cp ${map} ${dir}/System.map-${ver}
+ cp .config ${dir}/config-${ver}
+ ln -sf image-${ver} ${dir}/image
+ zipl
exit 0
-fi
+ ;;
+esac
exec /sbin/installkernel "$@"