Path: blob/master/arch/m32r/boot/compressed/install.sh
10818 views
#!/bin/sh1#2# arch/sh/boot/install.sh3#4# This file is subject to the terms and conditions of the GNU General Public5# License. See the file "COPYING" in the main directory of this archive6# for more details.7#8# Copyright (C) 1995 by Linus Torvalds9#10# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin11# Adapted from code in arch/i386/boot/install.sh by Russell King12# Adapted from code in arch/arm/boot/install.sh by Stuart Menefy13# Adapted from code in arch/sh/boot/install.sh by Takeo Takahashi14#15# "make install" script for sh architecture16#17# Arguments:18# $1 - kernel version19# $2 - kernel image file20# $3 - kernel map file21# $4 - default install path (blank if root directory)22#2324# User may have a custom install script2526if [ -x /sbin/${INSTALLKERNEL} ]; then27exec /sbin/${INSTALLKERNEL} "$@"28fi2930if [ "$2" = "zImage" ]; then31# Compressed install32echo "Installing compressed kernel"33if [ -f $4/vmlinuz-$1 ]; then34mv $4/vmlinuz-$1 $4/vmlinuz.old35fi3637if [ -f $4/System.map-$1 ]; then38mv $4/System.map-$1 $4/System.old39fi4041cat $2 > $4/vmlinuz-$142cp $3 $4/System.map-$143else44# Normal install45echo "Installing normal kernel"46if [ -f $4/vmlinux-$1 ]; then47mv $4/vmlinux-$1 $4/vmlinux.old48fi4950if [ -f $4/System.map ]; then51mv $4/System.map $4/System.old52fi5354cat $2 > $4/vmlinux-$155cp $3 $4/System.map56fi575859