rk3568_ubuntu_r60_v1.3.2/yocto/meta-quectel-app/recipes/set-jumbo-frame/set-jumbo-frame_0.1.bb

29 lines
868 B
BlitzBasic
Executable File

#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#
SUMMARY = "Simple helloworld application"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
inherit bin_package
SRC_URI = "file://set_jumbo_frame.sh"
SRC_URI += "file://set-jumbo-frame.service"
S = "${WORKDIR}"
do_install() {
install -d ${D}/etc/initscripts/
install -m 0755 set_jumbo_frame.sh ${D}/etc/initscripts/set_jumbo_frame.sh
install -d ${D}/etc/systemd/system/
install -d ${D}/etc/systemd/system/multi-user.target.wants/
install -m 0644 ${WORKDIR}/set-jumbo-frame.service -D ${D}/etc/systemd/system/set-jumbo-frame.service
ln -sf /etc/systemd/system/set-jumbo-frame.service ${D}/etc/systemd/system/multi-user.target.wants/set-jumbo-frame.service
}
FILES_${PN} += "/etc/*"