summaryrefslogtreecommitdiffstats
path: root/meta-systemd
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2013-01-22 15:00:41 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-01-27 22:35:42 +0100
commita32c030a6d3d1768a73f87c74f6e6558f0579ec0 (patch)
treedc29435eddba921f5d1e616f6048b775cd0cd274 /meta-systemd
parentd26edf9dbb78b26407043835d647ed98e751975d (diff)
downloadmeta-openembedded-a32c030a6d3d1768a73f87c74f6e6558f0579ec0.tar.gz
dropbear: read configuration from /etc/default/dropbear
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@sigma-chemnitz.de> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-systemd')
-rw-r--r--meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear@.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear@.service b/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear@.service
index 4fba3f05c..813788fe3 100644
--- a/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear@.service
+++ b/meta-systemd/meta-oe/recipes-core/dropbear/dropbear/dropbear@.service
@@ -4,6 +4,7 @@ Requires=dropbearkey.service
4After=syslog.target dropbearkey.service 4After=syslog.target dropbearkey.service
5 5
6[Service] 6[Service]
7ExecStart=-/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22 7EnvironmentFile=-/etc/default/dropbear
8ExecStart=-/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22 $DROPBEAR_EXTRA_ARGS
8ExecReload=/bin/kill -HUP $MAINPID 9ExecReload=/bin/kill -HUP $MAINPID
9StandardInput=socket 10StandardInput=socket