From: Mike Frysinger Date: Thu, 16 Jan 2014 17:10:30 +0000 (-0500) Subject: installkernel: update paths X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=545687f6dae9bfa4a54239d29dcf9a204cbe25f3;p=home.git installkernel: update paths --- 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 ;;