1c78f77e2SDavid L Stevens#!/bin/sh 2c78f77e2SDavid L Stevens# 3c78f77e2SDavid L Stevens# This file is subject to the terms and conditions of the GNU General Public 4c78f77e2SDavid L Stevens# License. See the file "COPYING" in the main directory of this archive 5c78f77e2SDavid L Stevens# for more details. 6c78f77e2SDavid L Stevens# 7c78f77e2SDavid L Stevens# Copyright (C) 1995 by Linus Torvalds 8c78f77e2SDavid L Stevens# 9c78f77e2SDavid L Stevens# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin 10c78f77e2SDavid L Stevens# 11c78f77e2SDavid L Stevens# "make install" script for SPARC architecture 12c78f77e2SDavid L Stevens# 13c78f77e2SDavid L Stevens# Arguments: 14c78f77e2SDavid L Stevens# $1 - kernel version 15c78f77e2SDavid L Stevens# $2 - kernel image file 16c78f77e2SDavid L Stevens# $3 - kernel map file 17c78f77e2SDavid L Stevens# $4 - default install path (blank if root directory) 18c78f77e2SDavid L Stevens 19*af7925d8SZhang Bingwuset -e 20*af7925d8SZhang Bingwu 21c78f77e2SDavid L Stevensif [ -f $4/vmlinuz ]; then 22c78f77e2SDavid L Stevens mv $4/vmlinuz $4/vmlinuz.old 23c78f77e2SDavid L Stevensfi 24c78f77e2SDavid L Stevens 25c78f77e2SDavid L Stevensif [ -f $4/System.map ]; then 26c78f77e2SDavid L Stevens mv $4/System.map $4/System.old 27c78f77e2SDavid L Stevensfi 28c78f77e2SDavid L Stevens 29c78f77e2SDavid L Stevenscat $2 > $4/vmlinuz 30c78f77e2SDavid L Stevenscp $3 $4/System.map 31