zoukankan      html  css  js  c++  java
  • systemd开机启动

    SUMMARY = "rvc_os temporary version"
    HOMEPAGE = "http://www.desay-svautomotive.com"
    
    LICENSE = "MIT"
    LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
    
    SECTION = "SVP"
    
    PACKAGE_ARCH = "${MACHINE_ARCH}"
    
    SRC_URI = " 
    	file://rvc-tmp-late.service 
    	file://rvc-tmp-late.sh 
    "
    
    inherit systemd
    
    PACKAGES = "${PN} rvc-tmp-late"
    
    SYSTEMD_PACKAGES += "rvc-tmp-late"
    SYSTEMD_SERVICE_rvc-tmp-late = "rvc-tmp-late.service"
    
    do_install() {
    	install -d ${D}${systemd_unitdir}/system
    	install -d ${D}${sysconfdir}/scripts
    	install -c -m 0644 ${WORKDIR}/rvc-tmp-late.service ${D}${systemd_unitdir}/system
    	install -c -m 0755 ${WORKDIR}/rvc-tmp-late.sh      ${D}${sysconfdir}/scripts
    }
    
    RDEPENDS_${PN} += "rvc-tmp-late"
    
    编译生成的目录:
    [ubuntu @packages-split]$ tree
    .
    ├── rvc-tmp
    │     └── etc
    │       └── scripts
    │           └── rvc-tmp-late.sh
    └── rvc-tmp-late  注意这两个目录不能相同,否则do_package报错!
        └── lib
            └── systemd
                └── system
                    └── rvc-tmp-late.service
  • 相关阅读:
    Java 编程规范
    Java常考面试题
    SQL 实战
    快速排序
    剑指Offer(51-67)
    剑指Offer(41-50)
    移动端图片编辑器
    css隐藏和显示table的第一列
    sweetAlert1 设置弹窗宽度,及使用自定义样式
    js获取yyyy-mm-dd hh:mm:ss格式的当前系统时间
  • 原文地址:https://www.cnblogs.com/hellokitty2/p/9200878.html
Copyright © 2011-2022 走看看