mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
dropbear: systemd support now in OE-Core
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
7bb14206a2
commit
4b8bb9992a
@@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Conflicts=dropbear.service
|
|
||||||
|
|
||||||
[Socket]
|
|
||||||
ListenStream=22
|
|
||||||
Accept=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
||||||
Also=dropbearkey.service
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=SSH Per-Connection Server
|
|
||||||
Requires=dropbearkey.service
|
|
||||||
After=syslog.target dropbearkey.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
EnvironmentFile=-/etc/default/dropbear
|
|
||||||
ExecStart=-/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22 $DROPBEAR_EXTRA_ARGS
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
StandardInput=socket
|
|
||||||
KillMode=process
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=SSH Key Generation
|
|
||||||
ConditionPathExists=|!/etc/dropbear/dropbear_rsa_host_key
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/sbin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
|
|
||||||
RemainAfterExit=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -1,21 +1,4 @@
|
|||||||
inherit systemd
|
|
||||||
|
|
||||||
# look for files in the layer first
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
||||||
|
|
||||||
SRC_URI += "file://dropbearkey.service \
|
|
||||||
file://dropbear@.service \
|
|
||||||
file://dropbear.socket"
|
|
||||||
|
|
||||||
RPROVIDES_${PN} += "${PN}-systemd"
|
RPROVIDES_${PN} += "${PN}-systemd"
|
||||||
RREPLACES_${PN} += "${PN}-systemd"
|
RREPLACES_${PN} += "${PN}-systemd"
|
||||||
RCONFLICTS_${PN} += "${PN}-systemd"
|
RCONFLICTS_${PN} += "${PN}-systemd"
|
||||||
SYSTEMD_SERVICE_${PN} = "dropbear.socket"
|
|
||||||
|
|
||||||
do_install_append() {
|
|
||||||
install -d ${D}${systemd_unitdir}/system
|
|
||||||
install -m 0644 ${WORKDIR}/dropbearkey.service ${D}${systemd_unitdir}/system
|
|
||||||
install -m 0644 ${WORKDIR}/dropbear@.service ${D}${systemd_unitdir}/system
|
|
||||||
install -m 0644 ${WORKDIR}/dropbear.socket ${D}${systemd_unitdir}/system
|
|
||||||
ln -sf /dev/null ${D}${systemd_unitdir}/system/dropbear.service
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user