Skip to content

Commit

Permalink
Create 06_fix_usb
Browse files Browse the repository at this point in the history
  • Loading branch information
csharper2005 authored Oct 17, 2023
1 parent 6848375 commit af51dba
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 af51dba

Please sign in to comment.