From af51dba868680ff9430769ffe39affecd1cb66f2 Mon Sep 17 00:00:00 2001 From: csharper2005 <82600916+csharper2005@users.noreply.github.com> Date: Tue, 17 Oct 2023 08:36:42 +0300 Subject: [PATCH] Create 06_fix_usb --- .../filogic/base-files/lib/preinit/06_fix_usb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/mediatek/filogic/base-files/lib/preinit/06_fix_usb diff --git a/target/linux/mediatek/filogic/base-files/lib/preinit/06_fix_usb b/target/linux/mediatek/filogic/base-files/lib/preinit/06_fix_usb new file mode 100644 index 00000000000000..0caabc9aa3f8e6 --- /dev/null +++ b/target/linux/mediatek/filogic/base-files/lib/preinit/06_fix_usb @@ -0,0 +1,12 @@ +preinit_fix_usb() { + case $(board_name) in + routerich,ax3000) + usb3_path="/sys/bus/usb/devices/usb2/authorized" + [ -e $usb3_path ] && echo 0 > $usb3_path + ;; + *) + ;; + esac +} + +boot_hook_add preinit_main preinit_fix_usb