usbinit.bb 773 B

123456789101112131415161718192021222324
  1. SUMMARY = "Initscript for enabling USB gadget Ethernet"
  2. DESCRIPTION = "This module allows ethernet emulation over USB, allowing for \
  3. all sorts of nifty things like SSH and NFS in one go plus charging over the \
  4. same wire, at higher speeds than most Wifi connections."
  5. HOMEPAGE = "http://linux-sunxi.org/USB_Gadget/Ethernet"
  6. LICENSE = "GPL-2.0-only"
  7. LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe"
  8. SRC_URI = "file://usb-gether \
  9. file://COPYING.GPL"
  10. S = "${WORKDIR}"
  11. do_install() {
  12. install -d ${D}${sysconfdir}
  13. install -d ${D}${sysconfdir}/init.d
  14. install usb-gether ${D}${sysconfdir}/init.d
  15. }
  16. inherit update-rc.d allarch
  17. INITSCRIPT_NAME = "usb-gether"
  18. INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."