home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / nethack-3.1 / sys / unix / snd86unx.shr / Install < prev    next >
Encoding:
Text File  |  1993-01-26  |  812 b   |  38 lines

  1. #
  2. # Speaker driver installation script
  3. #
  4. TMP=/tmp/speaker.err
  5. ERR1=" Errors have been written to the file $TMP."
  6. ERR2=" The Speaker Driver software was not installed."
  7.  
  8. echo "Installing Speaker Driver Software Package"
  9.  
  10. /etc/conf/bin/idcheck -p speaker 2>$TMP
  11. if [ $? != 0 ]
  12. then
  13.     echo "The speaker package is already at least partly installed.
  14.     Removing the old version now..."
  15.     /etc/conf/bin/idinstall -d speaker
  16. fi
  17.  
  18. /etc/conf/bin/idinstall -a -k speaker 2>>$TMP
  19. if [ $? != 0 ]
  20. then
  21.     message "There was an error during package installation. $ERR1 $ERR2"
  22.     exit 1
  23. fi
  24.  
  25. /etc/conf/bin/idbuild 2>>$TMP
  26. if [ $? != 0 ]
  27. then
  28.     message "There was an error during kernel reconfiguration. $ERR1 $ERR2"
  29.     exit 1
  30. fi
  31.  
  32. rm -f $TMP
  33.  
  34. cp spkr.h /usr/include/sys/spkr.h
  35.  
  36. echo "Performing shutdown..."
  37. cd /; exec /etc/shutdown -g0 -y
  38.