Files
poky/openembedded/packages/network-suspend-scripts/files/usbnet
Richard Purdie 4b46c1f6e8 Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
2005-08-31 10:45:47 +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