162306a36Sopenharmony_ci#!/bin/sh 262306a36Sopenharmony_ci# 362306a36Sopenharmony_ci# This file is subject to the terms and conditions of the GNU General Public 462306a36Sopenharmony_ci# License. See the file "COPYING" in the main directory of this archive 562306a36Sopenharmony_ci# for more details. 662306a36Sopenharmony_ci# 762306a36Sopenharmony_ci# Copyright (C) 1995 by Linus Torvalds 862306a36Sopenharmony_ci# 962306a36Sopenharmony_ci# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin 1062306a36Sopenharmony_ci# 1162306a36Sopenharmony_ci# "make install" script for i386 architecture 1262306a36Sopenharmony_ci# 1362306a36Sopenharmony_ci# Arguments: 1462306a36Sopenharmony_ci# $1 - kernel version 1562306a36Sopenharmony_ci# $2 - kernel image file 1662306a36Sopenharmony_ci# $3 - kernel map file 1762306a36Sopenharmony_ci# $4 - default install path (blank if root directory) 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciif [ -f $4/vmlinuz ]; then 2062306a36Sopenharmony_ci mv $4/vmlinuz $4/vmlinuz.old 2162306a36Sopenharmony_cifi 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciif [ -f $4/System.map ]; then 2462306a36Sopenharmony_ci mv $4/System.map $4/System.old 2562306a36Sopenharmony_cifi 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_cicat $2 > $4/vmlinuz 2862306a36Sopenharmony_cicp $3 $4/System.map 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ciif [ -x /sbin/lilo ]; then 3162306a36Sopenharmony_ci /sbin/lilo 3262306a36Sopenharmony_cielif [ -x /etc/lilo/install ]; then 3362306a36Sopenharmony_ci /etc/lilo/install 3462306a36Sopenharmony_cielse 3562306a36Sopenharmony_ci sync 3662306a36Sopenharmony_ci echo "Cannot find LILO." 3762306a36Sopenharmony_cifi 38