home *** CD-ROM | disk | FTP | other *** search
/ Caldera Network Desktop 1.0 / caldera-network-desktop-1.0.bin / images / ramdisk2-beta.img / etc / pcmcia / network < prev    next >
Text File  |  1995-08-12  |  599b  |  26 lines

  1. #! /bin/sh
  2. #
  3. # network.sample $Revision: 1.1 $ $Date: 1995/05/25 04:30:06 $ (David Hinds)
  4. #
  5. # Initialize or shutdown a PCMCIA ethernet adapter
  6. #
  7. # This script should be invoked with two arguments.  The first is the
  8. # action to be taken, either "start", "stop", or "restart".  The
  9. # second is the network interface name.
  10.  
  11. action=$1
  12. device=$2
  13.  
  14. case "${action:?}" in
  15. 'start')
  16.     # The network gets configured by the install script
  17.     # /etc/sysconfig/network-scripts/ifup-eth0
  18.     ;;
  19. 'stop')
  20.     # /etc/sysconfig/network-scripts/ifdown-eth0
  21.     ;;
  22. 'restart')
  23.     # /sbin/ifconfig ${device:?} down up
  24.     ;;
  25. esac
  26.