We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e9f5c commit 94380d6Copy full SHA for 94380d6
src/radxa-otgutils
@@ -37,7 +37,7 @@ configfs_init()
37
esac
38
}
39
40
-function_init()
+function_stop()
41
{
42
case "$MODE" in
43
adbd)
@@ -48,10 +48,9 @@ function_init()
48
;;
49
50
51
- if [ ! -e "/sys/kernel/config/usb_gadget/radxa-$MODE/configs/r.1/$GADGET" ];
+ if [ -e "/sys/kernel/config/usb_gadget/radxa-otgutils/configs/r.1/$GADGET" ];
52
then
53
- mkdir -p "/sys/kernel/config/usb_gadget/radxa-$MODE/functions/$GADGET"
54
- ln -s "/sys/kernel/config/usb_gadget/radxa-$MODE/functions/$GADGET" "/sys/kernel/config/usb_gadget/radxa-$MODE/configs/r.1"
+ rm "/sys/kernel/config/usb_gadget/radxa-otgutils/configs/r.1/$GADGET"
55
fi
56
57
0 commit comments