Reset gadget stack before configuring

Gadget stack would be configured based on persist.sys.usb.config.
Reset the usb stack before configuring.

Test: Manually verify modem overlay functions for usbradio bootmode
Bug: 31947358
Change-Id: I9bf5c1ad1626bba90689d7abfeaa8c27e82a7ecb
This commit is contained in:
Badhri Jagan Sridharan
2017-03-24 16:05:56 -07:00
parent e97ce188fb
commit bddf8f3163

View File

@@ -1,4 +1,5 @@
import init.wahoo.usb.rc
on boot && property:ro.bootmode=usbradio && property:persist.sys.usb.usbradio.config=*
setprop sys.usb.config "none"
setprop sys.usb.config ${persist.sys.usb.usbradio.config}