From 322393c27f305b41f1911e64158676a9468de828 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 16 Jun 2008 11:07:51 +0000 Subject: linux-hotplug: Drop, we don't support 2.4 kernels git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4670 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/linux-hotplug/files/sleeve.rc | 60 ----------------------------- 1 file changed, 60 deletions(-) delete mode 100755 meta/packages/linux-hotplug/files/sleeve.rc (limited to 'meta/packages/linux-hotplug/files/sleeve.rc') diff --git a/meta/packages/linux-hotplug/files/sleeve.rc b/meta/packages/linux-hotplug/files/sleeve.rc deleted file mode 100755 index 864a2eb18..000000000 --- a/meta/packages/linux-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 - -- cgit v1.2.3