凌云实验室推出的ARM Linux物联网网关开发板IGKBoard(IoT Gateway Kit Board)项目源码
guowenxue
2021-12-26 2a38807ea38df5f8da0f2424a8aacabb6948e363
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DESCRIPTION = "Turn on SSH if /boot/ssh is present"
 
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
 
inherit systemd
 
SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE_${PN} = "sshswitch.service"
 
SRC_URI += " file://sshswitch.service "
FILES_${PN} += "${systemd_unitdir}/system/sshswitch.service"
 
do_install() { 
    install -d ${D}/${systemd_unitdir}/system 
    install -m 0644 ${WORKDIR}/sshswitch.service ${D}/${systemd_unitdir}/system
}