xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-bsp/usbinit/usbinit.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Initscript for enabling USB gadget Ethernet"
2*4882a593SmuzhiyunDESCRIPTION = "This module allows ethernet emulation over USB, allowing for \
3*4882a593Smuzhiyunall sorts of nifty things like SSH and NFS in one go plus charging over the \
4*4882a593Smuzhiyunsame wire, at higher speeds than most Wifi connections."
5*4882a593SmuzhiyunHOMEPAGE = "http://linux-sunxi.org/USB_Gadget/Ethernet"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
8*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunPR = "r3"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSRC_URI = "file://usb-gether \
13*4882a593Smuzhiyun           file://COPYING.GPL"
14*4882a593SmuzhiyunS = "${WORKDIR}"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyundo_install() {
17*4882a593Smuzhiyun    install -d ${D}${sysconfdir}
18*4882a593Smuzhiyun    install -d ${D}${sysconfdir}/init.d
19*4882a593Smuzhiyun    install usb-gether ${D}${sysconfdir}/init.d
20*4882a593Smuzhiyun}
21*4882a593Smuzhiyun
22*4882a593Smuzhiyuninherit update-rc.d allarch
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunINITSCRIPT_NAME = "usb-gether"
25*4882a593SmuzhiyunINITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
26