Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/sh
0002 #
0003 # This file is subject to the terms and conditions of the GNU General Public
0004 # License.  See the file "COPYING" in the main directory of this archive
0005 # for more details.
0006 #
0007 # Copyright (C) 1995 by Linus Torvalds
0008 #
0009 # Blatantly stolen from in arch/i386/boot/install.sh by Dave Hansen 
0010 #
0011 # "make install" script for ppc64 architecture
0012 #
0013 # Arguments:
0014 #   $1 - kernel version
0015 #   $2 - kernel image file
0016 #   $3 - kernel map file
0017 #   $4 - default install path (blank if root directory)
0018 
0019 set -e
0020 
0021 # this should work for both the pSeries zImage and the iSeries vmlinux.sm
0022 image_name=`basename $2`
0023 
0024 if [ -f $4/$image_name ]; then
0025         mv $4/$image_name $4/$image_name.old
0026 fi
0027 
0028 if [ -f $4/System.map ]; then
0029         mv $4/System.map $4/System.old
0030 fi
0031 
0032 cat $2 > $4/$image_name
0033 cp $3 $4/System.map