forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
 
# Hooks for usbdevice
 
usb_pre_init_hook()
{
   echo 239 > bDeviceClass
   echo 2 > bDeviceSubClass
   echo 1 > bDeviceProtocol
}
 
usb_pre_stop_hook()
{
   killall rksl &>/dev/null || true
}
 
usb_post_stop_hook()
{
   usb_is_enabled || return 0
 
   # Sleep when restarting
   sleep 3
}