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/usbd.agent | 63 ---------------------------- 1 file changed, 63 deletions(-) delete mode 100755 meta/packages/linux-hotplug/files/usbd.agent (limited to 'meta/packages/linux-hotplug/files/usbd.agent') diff --git a/meta/packages/linux-hotplug/files/usbd.agent b/meta/packages/linux-hotplug/files/usbd.agent deleted file mode 100755 index 6613b4810a..0000000000 --- a/meta/packages/linux-hotplug/files/usbd.agent +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/ash - -# DEBUG=yes export DEBUG -#set -x - -. /etc/hotplug/hotplug.functions -. /etc/default/usbd -cd $HOTPLUG_DIR - -[ -z "$INTERFACE" ] && exit 1 -[ -z "$ACTION" ] && exit 1 -[ -z "$usbdmodule" ] && exit 0 - -debug_mesg "USBD $ACTION Action Recived" - -case $INTERFACE in - -monitor) - case $ACTION in - # called to load all usb device modules - load) - modprobe usbdcore - modprobe net_fd - modprobe $usbdmodule - ;; - - # called to handle suspend power management event - suspend) - rmmod $usbdmodule - ;; - - # called to reload after resume power management event - restore-loaded) - modprobe $usbdmodule - sleep 2 - ;; - - # called to unload after resume power management event - restore-unloaded) - modprobe -r net_fd - ;; - - # called to unload all usb device modules - unload) - modprobe -r $usbdmodule - ;; - - *) - debug_mesg USBD $ACTION event not handled - exit 1 - ;; - esac - ;; -*) - debug_mesg USBD $INTERFACE-$ACTION event not handled - exit 1 - ;; -esac - -[ -e /proc/usb-monitor ] && echo "Done" > /proc/usb-monitor - -exit 0 - -- cgit v1.2.3-54-g00ecf