summaryrefslogtreecommitdiff
path: root/hotplug/files/sleeve.rc
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-09 09:47:41 +0000
committerChris Larson <clarson@kergoth.com>2004-12-09 09:47:41 +0000
commit2c5b8ec6d95cf68650265941530e5ce38c8dd6d9 (patch)
treebf879bea7ef8517ba8c3d1286ef300401d3d484c /hotplug/files/sleeve.rc
parent101e2f1623def0a355d20aacb8bd93810703e834 (diff)
Merge oe-devel@oe-devel.bkbits.net:openembedded
into hyperion.kergoth.com:/home/kergoth/code/openembedded 2004/12/09 03:39:39-06:00 kergoth.com!kergoth Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit. BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA
Diffstat (limited to 'hotplug/files/sleeve.rc')
-rw-r--r--hotplug/files/sleeve.rc60
1 files changed, 0 insertions, 60 deletions
diff --git a/hotplug/files/sleeve.rc b/hotplug/files/sleeve.rc
deleted file mode 100644
index 864a2eb182..0000000000
--- a/hotplug/files/sleeve.rc
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-#
-# H3600 Sleeve hotplug *.rc agent.
-# This script is called by /etc/init.d/hotplug whenever
-# a run level has changed.
-#
-# A single argument is passed - start, restart, status, or stop
-#
-# We set up parameters that are equivalent to the ones created
-# by the Kernel and pass them along to /sbin/hotplug (the
-# function called by the kernel).
-#
-# Kernel NET hotplug params include:
-#
-# ACTION=%s [add or remove]
-# VENDOR_ID=%s
-# DEVICE_ID=%x
-# DEVICE_NAME=%s
-#
-
-. /etc/hotplug/hotplug.functions
-# DEBUG=yes export DEBUG
-
-SLEEVEFILE="/proc/bus/sleeve/device"
-[ ! -f $SLEEVEFILE ] && exit 0
-
-# give the sleeve driver a kick to make sure it recognizes the card -Jamey 6/26/01
-# echo > /proc/sys/sleeve/insert
-
-export DEVICE_NAME=`/bin/grep driver $SLEEVEFILE | /bin/sed -e 's/.*=//'`
-export DEVICE_ID=`/bin/grep device $SLEEVEFILE | /bin/sed -e 's/.*=//'`
-export VENDOR_ID=`/bin/grep vendor $SLEEVEFILE | /bin/sed -e 's/.*=//'`
-
-case "$1" in
- start)
- export ACTION="add"
- /sbin/hotplug sleeve
- ;;
- stop)
- export ACTION="remove"
- /sbin/hotplug sleeve
- ;;
- restart)
- export ACTION="remove"
- /sbin/hotplug sleeve
- export ACTION="add"
- /sbin/hotplug sleeve
- ;;
- status)
- if [ -f /var/lock/subsys/hotplug ]; then
- mesg "Hot plug sleeve has been started, current device $DEVICE_NAME"
- else
- mesg "Hot plug sleeve has not been started, current device $DEVICE_NAME"
- fi
- ;;
- *)
- mesg "Usage: $0 {start|stop|status|restart}"
- ;;
-esac
-