File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,13 @@ function_init()
3838 ;;
3939 esac
4040
41- if [ ! -e " /sys/kernel/config/usb_gadget/radxa-otgutils/configs/r.1 /$GADGET " ];
41+ if [ ! -e " /sys/kernel/config/usb_gadget/radxa-otgutils/functions /$GADGET " ];
4242 then
4343 mkdir -p " /sys/kernel/config/usb_gadget/radxa-otgutils/functions/$GADGET "
44+ fi
45+
46+ if [ ! -e " /sys/kernel/config/usb_gadget/radxa-otgutils/configs/r.1/$GADGET " ];
47+ then
4448 ln -s " /sys/kernel/config/usb_gadget/radxa-otgutils/functions/$GADGET " " /sys/kernel/config/usb_gadget/radxa-otgutils/configs/r.1/$GADGET "
4549 fi
4650}
9498{
9599 function_stop
96100 if [[ ! -e " /sys/kernel/config/usb_gadget/radxa-otgutils/configs/r.1/" ]] || \
97- (( $(find / sys/ kernel/ config/ usb_gadget/ radxa- otgutils/ configs/ r.1 /* - maxdepth 0 - type d | wc - l) == 0 ))
101+ (( $(find / sys/ kernel/ config/ usb_gadget/ radxa- otgutils/ configs/ r.1 /* - maxdepth 0 - type l | wc - l) == 0 ))
98102 then
99103 echo " none" > " /sys/kernel/config/usb_gadget/radxa-otgutils/UDC"
100104 fi
You can’t perform that action at this time.
0 commit comments