summaryrefslogtreecommitdiff
path: root/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-02-18 09:38:09 -0600
committerJohn Klug <john.klug@multitech.com>2019-02-18 09:38:09 -0600
commit67ac32d0e6feb43f91a3560140187511c13cf666 (patch)
tree263be2acb1086302db1f23c7a6146aac01f78d27 /recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb
parent9803e9166d59eb8575d6713d5f6fc6122833fe7c (diff)
downloadmeta-mlinux-atmel-67ac32d0e6feb43f91a3560140187511c13cf666.tar.gz
meta-mlinux-atmel-67ac32d0e6feb43f91a3560140187511c13cf666.tar.bz2
meta-mlinux-atmel-67ac32d0e6feb43f91a3560140187511c13cf666.zip
Merge usb-gadget-mode.bbappend for MTR into main recipe
Diffstat (limited to 'recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb')
-rw-r--r--recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb b/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb
index 32f3fdf..0f15830 100644
--- a/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb
+++ b/recipes-connectivity/usb-gadget-mode/usb-gadget-mode.bb
@@ -45,3 +45,12 @@ pkg_postrm_${PN}() {
PACKAGE_ARCH = "${MACHINE_ARCH}"
+# 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
+}