op_xfcemenu.sh: Changed to bsp's script (slightly modified) which works with the...
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_usbhost.sh
1 #!/bin/sh
2 #
3 # Released under the GPL
4
5 # This script simply toggles USB Host on or off.
6 cd /
7 if [ "`lsmod | grep ehci_hcd`" ]
8 then
9         notify-send -u normal "USB" "USB Host is being disabled..." -i /usr/share/icons/gnome/32x32/devices/usbpendrive_unmount.png
10         rmmod ehci-hcd
11 else
12         notify-send -u normal "USB" "USB Host is being enabled..." -i /usr/share/icons/gnome/32x32/devices/usbpendrive_unmount.png
13         modprobe ehci-hcd
14 fi