[oe] [PATCH] [meta-systemd] dropbear: read configuration from /etc/default/dropbear

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Tue Jan 22 15:00:41 UTC 2013


Patch allows to specify additional parameters (e.g. '-B') by reading
/etc/default/dropbear as a systemd environment file.  It applies
$DROPBEAR_EXTRA_ARGS which used already by the oe-core sysv initscript.

Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
---
 meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear at .service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear at .service b/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear at .service
index 4fba3f0..813788f 100644
--- a/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear at .service
+++ b/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear at .service
@@ -4,6 +4,7 @@ Requires=dropbearkey.service
 After=syslog.target dropbearkey.service
 
 [Service]
-ExecStart=-/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22
+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
-- 
1.7.11.7





More information about the Openembedded-devel mailing list