base-files: retrigger usb coldplug after module loading, solves usb_modeswitch on boot and possibly others (#9352)
SVN-Revision: 26848
This commit is contained in:
parent
732abc44cc
commit
ba1c1e9016
2 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=68
|
||||
PKG_RELEASE:=69
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
PKG_BUILD_DEPENDS:=opkg/host
|
||||
|
|
|
@ -80,6 +80,11 @@ start() {
|
|||
}
|
||||
|
||||
load_modules /etc/modules.d/*
|
||||
|
||||
# another round of USB coldplugging to kick devices into operation which lacked drivers before
|
||||
for dev in /sys/bus/usb/devices/*/uevent; do
|
||||
[ -e "$dev" ] && echo -n add > "$dev"
|
||||
done
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
|
Loading…
Reference in a new issue