From 5b4bdae839385d0022533b6bc6cc06469c8ca933 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 5 Jan 2010 14:59:07 -0500 Subject: [PATCH] helper script for blackfin kernel install --- .bin/installkernel | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .bin/installkernel diff --git a/.bin/installkernel b/.bin/installkernel new file mode 100755 index 0000000..fa230ec --- /dev/null +++ b/.bin/installkernel @@ -0,0 +1,11 @@ +#!/bin/bash +if [[ $2 == */blackfin/* ]] ; then + mmv() { [[ -e $1 ]] && mv "$1" "$2" ; } + mmv $4/uImage $4/uImage.old + mmv $4/$3 $4/$3.old + + cp $2 $4/uImage + cp $3 $4/$3 + exit 0 +fi +exec /sbin/installkernel "$@" -- 2.39.5