Files
poky/meta/packages/network-suspend-scripts/files/usbnet
Richard Purdie b2f192faab Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-07-21 10:10:31 +00:00

17 lines
271 B
Bash

#!/bin/sh
# Unloads/loads usb-eth so it always works
. /etc/default/usbd
if [ "$1" = suspend ]; then
rmmod usb-eth
rmmod sa1100usb_core
elif [ "$1" = resume ] && [ "$2" != standby ]; then
modprobe usb-eth
modprobe -r $usbdmodule
modprobe $usbdmodule
fi
: exit 0