mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
DESCRIPTION = "Initscript to manage gadget Ethernet"
|
||||
LICENSE = "GPL"
|
||||
PRIORITY = "optional"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "file://usb-gether"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/etc
|
||||
install -d ${D}/etc/init.d
|
||||
install usb-gether ${D}/etc/init.d
|
||||
}
|
||||
|
||||
inherit update-rc.d
|
||||
|
||||
INITSCRIPT_NAME = "usb-gether"
|
||||
INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# usb-ether Start up the gadget usb ethernet interface.
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
start|"")
|
||||
test "$VERBOSE" != no && echo "Initializing g_ether gadget..."
|
||||
modprobe g_ether
|
||||
ifup usb0
|
||||
;;
|
||||
stop)
|
||||
test "$VERBOSE" != no && echo "Disabling g_ether..."
|
||||
ifdown usb0
|
||||
rmmod g_ether
|
||||
;;
|
||||
*)
|
||||
echo "Usage: usb-ether {start|stop}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user