home *** CD-ROM | disk | FTP | other *** search
/ ftp.jcu.edu.au / 2014.06.ftp.jcu.edu.au.tar / ftp.jcu.edu.au / v6.3.2b / SWBD72 / prefwdl < prev    next >
Text File  |  2010-11-07  |  698b  |  42 lines

  1. #!/bin/sh
  2. #
  3. #    Copyright (c) 2006 Brocade Communications Systems, Inc.
  4. #    All rights reserved.
  5. #
  6. #    Description:
  7. #
  8. #    It runs before downloading takes place.
  9. #
  10. #
  11.  
  12. PATH=/bin:/usr/bin:/sbin:/usr/sbin
  13.  
  14. #
  15. # Passed in version numbers
  16. #
  17. TO_MAJOR=$1
  18. TO_MINOR=$2
  19. TO_PATCH=$3
  20.  
  21. DEBUG=0
  22. if [ $DEBUG = 1 ]; then
  23.     ECHO='echo -e'
  24. else
  25.     ECHO=:
  26. fi
  27.  
  28. #
  29. # main()
  30. #
  31. $ECHO Requested version is ${TO_MAJOR}.${TO_MINOR}.${TO_PATCH} Type is $TYPE
  32.  
  33.  
  34. #
  35. # clean up to free up disk space on /mnt before firmwaredownload
  36. #
  37. /bin/rm -f /mnt/var/tracedump.dmp
  38. /bin/rm -rf /lost+found
  39. /bin/rm -rf /mnt/lost+found
  40. (cd /mnt/core_files && /sbin/core_tidy.sh 2> /dev/null; cd /core_files && /sbin/core_tidy.sh 2>/dev/null)
  41. exit 0
  42.