home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 August / PCO0897.ISO / delix / initrd / initrd-fixes.30.06.97 / usr / adm / setup / dldhelp next >
Encoding:
Text File  |  1997-06-25  |  1.1 KB  |  39 lines

  1. #!/bin/sh
  2. #################################################
  3. #                                                                #
  4. # File:        dldhelp                                         #
  5. # Authors:    Niels Mache, Ngo Than                    #
  6. # Last change:    17ARPRIL1997                            #
  7. #                                                                #    
  8. # DLD - German Linux Distribution -                    #
  9. #                                                                #
  10. # Copyright (c) 1993-1997  delix Computer GmbH    #
  11. #                          Schlo▀stra▀e 98        #
  12. #                          D-70176 Stuttgart        #
  13. # All rights reserved.                                    #
  14. #                                                                #
  15. #################################################
  16.  
  17. RootDir=/usr/adm/setup
  18. TITLE="DLD Hilfe"
  19.  
  20. [ "$TERM" = "xterm" ] && export TERM="color_xterm"
  21. DLDVersion="5.2"
  22. DIALOGTITLE=" DLD $DLDVersion (C) 1993-1997 by delix GmbH, Schlo▀str. 98, 70176 Stuttgart, Germany"
  23.  
  24. mydialog() {
  25.     dialog --shadow --backtitle "$DIALOGTITLE" "$@"
  26. }
  27.  
  28. if [ -f $RootDir/hilfe.hlp ]; then
  29.     mydialog --title "$TITLE" --textbox $RootDir/hilfe.hlp 20 74
  30. elif [ -f $RootDir/hilfe.hlp.gz ]; then
  31.     cp $RootDir/hilfe.hlp.gz /tmp
  32.     gzip -d /tmp/hilfe.hlp.gz
  33.     mydialog --title "$TITLE" --textbox /tmp/hilfe.hlp 20 74
  34.     rm -f /tmp/hilfe.hlp
  35. else 
  36.     mydialog --title "Fehler:" --msgbox \
  37. "File $RootDir/hilfe.hlp nicht gefunden" 6 40
  38. fi
  39.