summaryrefslogtreecommitdiff
path: root/hotplug/files/usbd.agent
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/usbd.agent
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/usbd.agent')
-rw-r--r--hotplug/files/usbd.agent63
1 files changed, 0 insertions, 63 deletions
diff --git a/hotplug/files/usbd.agent b/hotplug/files/usbd.agent
deleted file mode 100644
index 6613b4810a..0000000000
--- a/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
-