summaryrefslogtreecommitdiff
path: root/recipes-connectivity/usb-gadget-mode
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-02-18 09:20:13 -0600
committerJohn Klug <john.klug@multitech.com>2019-02-18 09:20:13 -0600
commit9803e9166d59eb8575d6713d5f6fc6122833fe7c (patch)
treef656b1c7d712f32572385d7df74477a53abe9de3 /recipes-connectivity/usb-gadget-mode
parent15763e5b3352b846ae9ec8ddf5661c22f3fe722a (diff)
downloadmeta-mlinux-9803e9166d59eb8575d6713d5f6fc6122833fe7c.tar.gz
meta-mlinux-9803e9166d59eb8575d6713d5f6fc6122833fe7c.tar.bz2
meta-mlinux-9803e9166d59eb8575d6713d5f6fc6122833fe7c.zip
usb-gadget-mode.bbappend
Diffstat (limited to 'recipes-connectivity/usb-gadget-mode')
-rw-r--r--recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bbappend9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bbappend b/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bbappend
new file mode 100644
index 0000000..2b5b932
--- /dev/null
+++ b/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bbappend
@@ -0,0 +1,9 @@
+# disable usb-gadget on mtr
+do_install_append_mtr() {
+ sed -i 's/ENABLED="yes"/ENABLED="no"/g' ${D}${sysconfdir}/default/usb-gadget
+}
+
+# disable usb-gadget on mtrv1
+do_install_append_mtrv1() {
+ sed -i 's/ENABLED="yes"/ENABLED="no"/g' ${D}${sysconfdir}/default/usb-gadget
+}