home *** CD-ROM | disk | FTP | other *** search
/ Caldera Network Desktop 1.0 / caldera-network-desktop-1.0.bin / images / ramdisk2-beta.img / etc / pcmcia / serial < prev   
Text File  |  1995-08-02  |  414b  |  24 lines

  1. #!/bin/sh
  2. #
  3. # serial.sample 1.2 1995/05/25 04:27:58 (David Hinds)
  4. #
  5. # Initialize or shutdown a PCMCIA serial device
  6. #
  7. # The first argument should be either 'start' or 'stop'.  The second
  8. # argument is the base name for the device.
  9. #
  10.  
  11. action=$1
  12. name=$2
  13.  
  14. case "${action:?}" in
  15. 'start')
  16.     rm -f /dev/modem
  17.     ln -s /dev/$2 /dev/modem
  18.     ;;
  19. 'stop')
  20.     fuser -k /dev/$2 /dev/modem
  21.     rm -f /dev/modem
  22.     ;;
  23. esac
  24.