]> git.wh0rd.org Git - home.git/commitdiff
helper script for blackfin kernel install
authorMike Frysinger <vapier@gentoo.org>
Tue, 5 Jan 2010 19:59:07 +0000 (14:59 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:35 +0000 (15:36 -0400)
.bin/installkernel [new file with mode: 0755]

diff --git a/.bin/installkernel b/.bin/installkernel
new file mode 100755 (executable)
index 0000000..fa230ec
--- /dev/null
@@ -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 "$@"