#!/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# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin9#10# "make install" script for m68k architecture11#12# Arguments:13# $1 - kernel version14# $2 - kernel image file15# $3 - kernel map file16# $4 - default install path (blank if root directory)17#1819verify () {20if [ ! -f "$1" ]; then21echo "" 1>&222echo " *** Missing file: $1" 1>&223echo ' *** You need to run "make" before "make install".' 1>&224echo "" 1>&225exit 126fi27}2829# Make sure the files actually exist30verify "$2"31verify "$3"3233# User may have a custom install script3435if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi36if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi3738# Default install - same as make zlilo3940if [ -f $4/vmlinuz ]; then41mv $4/vmlinuz $4/vmlinuz.old42fi4344if [ -f $4/System.map ]; then45mv $4/System.map $4/System.old46fi4748cat $2 > $4/vmlinuz49cp $3 $4/System.map5051sync525354