#!/bin/bash
-# 2.6.35.4-default arch/s390/boot/image System.map Kerntypes /boot
+# 2.6.35.4-default arch/s390/boot/image System.map /boot
mmv() { [[ -e $1 ]] && mv "$1" "$2" ; }
ver=$1
img=$2
map=$3
-# $4 == ??
-dir=$5
+dir=$4
+
+mount "${dir}" >&/dev/null
case ${img} in
*/blackfin/*)
- mmv $4/uImage $4/uImage.old
- mmv $4/${map} $4/${map}.old
+ mmv ${dir}/uImage ${dir}/uImage.old
+ mmv ${dir}/${map} ${dir}/${map}.old
- cp ${img} $4/uImage
- cp ${map} $4/${map}
+ cp ${img} ${dir}/uImage
+ cp ${map} ${dir}/${map}
exit 0
;;