^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 1) #!/bin/sh
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 2) #
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 3) # arch/ia64/install.sh
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 4) #
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 5) # This file is subject to the terms and conditions of the GNU General Public
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 6) # License. See the file "COPYING" in the main directory of this archive
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 7) # for more details.
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 8) #
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 9) # Copyright (C) 1995 by Linus Torvalds
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 10) #
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 11) # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 12) #
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 13) # "make install" script for ia64 architecture
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 14) #
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 15) # Arguments:
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 16) # $1 - kernel version
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 17) # $2 - kernel image file
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 18) # $3 - kernel map file
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 19) # $4 - default install path (blank if root directory)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 20) #
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 21)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 22) # User may have a custom install script
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 23)
caa27b66bd718 (Sam Ravnborg 2009-07-20 21:37:11 +0200 24) if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
caa27b66bd718 (Sam Ravnborg 2009-07-20 21:37:11 +0200 25) if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 26)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 27) # Default install - same as make zlilo
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 28)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 29) if [ -f $4/vmlinuz ]; then
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 30) mv $4/vmlinuz $4/vmlinuz.old
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 31) fi
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 32)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 33) if [ -f $4/System.map ]; then
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 34) mv $4/System.map $4/System.old
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 35) fi
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 36)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 37) cat $2 > $4/vmlinuz
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 38) cp $3 $4/System.map
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 39)
^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 40) test -x /usr/sbin/elilo && /usr/sbin/elilo