home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Caldera Network Desktop 1.0
/
caldera-network-desktop-1.0.bin
/
images
/
ramdisk2.img
/
etc
/
pcmcia
/
network
< prev
next >
Wrap
Text File
|
1995-08-12
|
599b
|
26 lines
#! /bin/sh
#
# network.sample $Revision: 1.1 $ $Date: 1995/05/25 04:30:06 $ (David Hinds)
#
# Initialize or shutdown a PCMCIA ethernet adapter
#
# This script should be invoked with two arguments. The first is the
# action to be taken, either "start", "stop", or "restart". The
# second is the network interface name.
action=$1
device=$2
case "${action:?}" in
'start')
# The network gets configured by the install script
# /etc/sysconfig/network-scripts/ifup-eth0
;;
'stop')
# /etc/sysconfig/network-scripts/ifdown-eth0
;;
'restart')
# /sbin/ifconfig ${device:?} down up
;;
esac