M7350/oe-core/meta-msm/recipes/startup-scripts/start-scripts-usbnet.bb
2024-09-09 08:52:07 +00:00

27 lines
706 B
BlitzBasic

DESCRIPTION = "RNDIS network scripts"
HOMEPAGE = "http://codeaurora.org"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/\
${LICENSE};md5=3775480a712fc46a69647678acb234cb"
LICENSE = "BSD"
SRC_URI ="file://usbnet"
PR = "r7"
inherit update-rc.d
INITSCRIPT_NAME = "usbnet"
INITSCRIPT_PARAMS = "start 43 S 2 3 4 5 S . stop 80 0 1 6 ."
do_install() {
install -m 0755 ${WORKDIR}/usbnet -D ${D}${sysconfdir}/init.d/usbnet
}
pkg_postinst-${PN} () {
[ -n "$D" ] && OPT="-r $D" || OPT="-s"
# remove all rc.d-links potentially created from alternatives
update-rc.d $OPT -f usbnet remove
update-rd.d $OPT usbnet start 43 S 2 3 4 5 S . stop 80 0 1 6 .
}