From 545687f6dae9bfa4a54239d29dcf9a204cbe25f3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 16 Jan 2014 12:10:30 -0500 Subject: [PATCH] installkernel: update paths --- .bin/installkernel | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.bin/installkernel b/.bin/installkernel index a8a448f..2a598d5 100755 --- a/.bin/installkernel +++ b/.bin/installkernel @@ -1,21 +1,22 @@ #!/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 ;; -- 2.39.5