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 / SWBD63 / fabos-6.3.2b-10.ppc.rpm / fabos-6.3.2b.10.cpio.gz / fabos-6.3.2b.10.cpio / fabos / libexec / isSecureMode < prev    next >
Text File  |  2010-11-10  |  596b  |  30 lines

  1. #!/bin/sh
  2. #
  3. #    Copyright (c) 2006 Brocade Communications Systems, Inc.
  4. #    All rights reserved.
  5. #
  6. #    File name:   isSecureMode
  7. #
  8. #    This script exits 0 if not in secure mode and exits 1 if in
  9. #    secure mode.  This is used by other CLI's which do not
  10. #    link with the security library.
  11. #
  12. export PATH=/fabos/sbin:/fabos/bin:/bin:/usr/bin:/sbin
  13.  
  14. GREP=/bin/grep
  15.  
  16. # Make sure there's exactly one argument
  17. if ! [ $# -eq 0 ]; then
  18. #    echo Invalid number of arguments: $#
  19.     exit -1
  20. fi
  21.  
  22. disableMsg=`/fabos/cliexec/secmodeshow | $GREP DISABLED`
  23.  
  24. if test "$disableMsg" = ""
  25. then
  26.     exit 1
  27. fi
  28.  
  29. exit 0
  30.