commit | author | age
|
849fbd
|
1 |
DESCRIPTION = "Turn on SSH if /boot/ssh is present" |
G |
2 |
LICENSE = "GPL-2.0-only" |
|
3 |
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" |
|
4 |
|
|
5 |
inherit systemd |
|
6 |
|
|
7 |
SYSTEMD_AUTO_ENABLE = "enable" |
|
8 |
SYSTEMD_SERVICE:${PN} = "sshswitch.timer" |
|
9 |
|
|
10 |
SRC_URI += " file://sshswitch.service " |
|
11 |
SRC_URI += " file://sshswitch.timer " |
|
12 |
|
|
13 |
FILES:${PN} += "${systemd_unitdir}/system/sshswitch.service" |
|
14 |
FILES:${PN} += "${systemd_unitdir}/system/sshswitch.timer" |
|
15 |
|
|
16 |
do_install() { |
|
17 |
install -d ${D}/${systemd_unitdir}/system |
|
18 |
install -m 0644 ${WORKDIR}/sshswitch.service ${D}/${systemd_unitdir}/system |
|
19 |
install -m 0644 ${WORKDIR}/sshswitch.timer ${D}/${systemd_unitdir}/system |
|
20 |
} |