diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 493beb99..61e21c4e 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -186,18 +186,10 @@ fi needusbstorage= if [ $usb = "1" ]; then - mouseoutput=`cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=02"` - kbdoutput=`cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=01"` needusbstorage=`cat /proc/bus/usb/devices 2>/dev/null|grep -e "^I.*Cls=08"` - if [ -n "$kbdoutput" ] || [ -n "$mouseoutput" ]; then - action $"Initializing USB HID interface: " modprobe hid 2> /dev/null - fi - if [ -n "$kbdoutput" ]; then - action $"Initializing USB keyboard: " modprobe keybdev - fi - if [ -n "$mouseoutput" ]; then - action $"Initializing USB mouse: " modprobe mousedev - fi + action $"Initializing USB HID interface: " modprobe hid 2> /dev/null + action $"Initializing USB keyboard: " modprobe keybdev + action $"Initializing USB mouse: " modprobe mousedev fi if [ -f /fastboot ] || grep -iq "fastboot" /proc/cmdline 2>/dev/null ; then |