#!/bin/sh1#2# This file is subject to the terms and conditions of the GNU General Public3# License. See the file "COPYING" in the main directory of this archive4# for more details.5#6# Copyright (C) 1995 by Linus Torvalds7#8# Blatantly stolen from in arch/i386/boot/install.sh by Dave Hansen9#10# "make install" script for ppc64 architecture11#12# Arguments:13# $1 - kernel version14# $2 - kernel image file15# $3 - kernel map file16# $4 - default install path (blank if root directory)1718set -e1920# this should work for both the pSeries zImage and the iSeries vmlinux.sm21image_name=$(basename "$2")222324echo "Warning: '${INSTALLKERNEL}' command not available... Copying" \25"directly to $4/$image_name-$1" >&22627if [ -f "$4"/"$image_name"-"$1" ]; then28mv "$4"/"$image_name"-"$1" "$4"/"$image_name"-"$1".old29fi3031if [ -f "$4"/System.map-"$1" ]; then32mv "$4"/System.map-"$1" "$4"/System-"$1".old33fi3435cat "$2" > "$4"/"$image_name"-"$1"36cp "$3" "$4"/System.map-"$1"373839