Path: blob/master/arch/sh/boot/compressed/install.sh
10819 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#14# "make install" script for sh architecture15#16# Arguments:17# $1 - kernel version18# $2 - kernel image file19# $3 - kernel map file20# $4 - default install path (blank if root directory)21#2223# User may have a custom install script2425if [ -x /sbin/${INSTALLKERNEL} ]; then26exec /sbin/${INSTALLKERNEL} "$@"27fi2829if [ "$2" = "zImage" ]; then30# Compressed install31echo "Installing compressed kernel"32if [ -f $4/vmlinuz-$1 ]; then33mv $4/vmlinuz-$1 $4/vmlinuz.old34fi3536if [ -f $4/System.map-$1 ]; then37mv $4/System.map-$1 $4/System.old38fi3940cat $2 > $4/vmlinuz-$141cp $3 $4/System.map-$142else43# Normal install44echo "Installing normal kernel"45if [ -f $4/vmlinux-$1 ]; then46mv $4/vmlinux-$1 $4/vmlinux.old47fi4849if [ -f $4/System.map ]; then50mv $4/System.map $4/System.old51fi5253cat $2 > $4/vmlinux-$154cp $3 $4/System.map55fi565758