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 / bin / tsTZ < prev    next >
Text File  |  2010-11-10  |  537b  |  21 lines

  1. #!/bin/sh
  2. #
  3. #    Copyright (c) 2002-6 Brocade Communications Systems, Inc.
  4. #    All rights reserved.
  5. #
  6. #    File name:   tsTZ.sh.in
  7. #    Module name: fabos/src/ts
  8. #
  9. #    This script is used by the tsTimeZone command to
  10. #    output the commands for the parent shell
  11. #    This is required to set TZ environment variable
  12. #    in the current session
  13.  
  14. if FABOS_SWITCHNO=0 /fabos/cliexec/config get ts.tz 5 >/dev/null
  15. then
  16.     echo unset TZ
  17. elif [ -x /fabos/link_bin/tsGetEnvTZ ]; then
  18.     TZ=`tsGetEnvTZ $FABOS_SWITCHNO`
  19.     echo export "TZ='$TZ'"
  20. fi
  21.