3 # H3600 Sleeve hotplug *.rc agent.
4 # This script is called by /etc/init.d/hotplug whenever
5 # a run level has changed.
7 # A single argument is passed - start, restart, status, or stop
9 # We set up parameters that are equivalent to the ones created
10 # by the Kernel and pass them along to /sbin/hotplug (the
11 # function called by the kernel).
13 # Kernel NET hotplug params include:
15 # ACTION=%s [add or remove]
21 . /etc/hotplug/hotplug.functions
22 # DEBUG=yes export DEBUG
24 SLEEVEFILE="/proc/bus/sleeve/device"
25 [ ! -f $SLEEVEFILE ] && exit 0
27 # give the sleeve driver a kick to make sure it recognizes the card -Jamey 6/26/01
28 # echo > /proc/sys/sleeve/insert
30 export DEVICE_NAME=`/bin/grep driver $SLEEVEFILE | /bin/sed -e 's/.*=//'`
31 export DEVICE_ID=`/bin/grep device $SLEEVEFILE | /bin/sed -e 's/.*=//'`
32 export VENDOR_ID=`/bin/grep vendor $SLEEVEFILE | /bin/sed -e 's/.*=//'`
40 export ACTION="remove"
44 export ACTION="remove"
50 if [ -f /var/lock/subsys/hotplug ]; then
51 mesg "Hot plug sleeve has been started, current device $DEVICE_NAME"
53 mesg "Hot plug sleeve has not been started, current device $DEVICE_NAME"
57 mesg "Usage: $0 {start|stop|status|restart}"