Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
csharper2005 authored Oct 15, 2023
1 parent 92be86b commit 89903bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions target/linux/mediatek/filogic/base-files/lib/preinit/06_fix_usb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 89903bb

Please sign in to comment.