install.sh 782 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. #
  3. # This file is subject to the terms and conditions of the GNU General Public
  4. # License. See the file "COPYING" in the main directory of this archive
  5. # for more details.
  6. #
  7. # Copyright (C) 1995 by Linus Torvalds
  8. #
  9. # Blatantly stolen from in arch/i386/boot/install.sh by Dave Hansen
  10. #
  11. # "make install" script for ppc64 architecture
  12. #
  13. # Arguments:
  14. # $1 - kernel version
  15. # $2 - kernel image file
  16. # $3 - kernel map file
  17. # $4 - default install path (blank if root directory)
  18. set -e
  19. # this should work for both the pSeries zImage and the iSeries vmlinux.sm
  20. image_name=`basename $2`
  21. if [ -f $4/$image_name ]; then
  22. mv $4/$image_name $4/$image_name.old
  23. fi
  24. if [ -f $4/System.map ]; then
  25. mv $4/System.map $4/System.old
  26. fi
  27. cat $2 > $4/$image_name
  28. cp $3 $4/System.map