You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
541 B

#!/bin/sh
. /etc/init.d/functions
. /etc/init.d/globals
case "$1" in
start)
LOGINFO "mdev coldplug ..."
echo > /dev/mdev.seq
echo $(which mdev) > /proc/sys/kernel/hotplug
mdev -s
# mdev -s does not poke usb devices, so we need to do it here.
LOGINFO "scanning /sys/bus/usb/devices/ to help mdev with usb-coldplug"
for i in /sys/bus/usb/devices/*; do
case "${i##*/}" in
*-*:1.0)
LOGINFO "usb device $i found"
echo add >$i/uevent
;;
esac
done
;;
*)
echo "[$BASENAME] Usage: $0 {start}"
;;
esac