From: Mike Frysinger Date: Tue, 5 Jan 2010 19:59:07 +0000 (-0500) Subject: helper script for blackfin kernel install X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5b4bdae839385d0022533b6bc6cc06469c8ca933;p=home.git helper script for blackfin kernel install --- 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 "$@"