forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
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
}