diff options
author | Enrico Scholz <enrico.scholz@sigma-chemnitz.de> | 2013-01-22 15:00:41 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-27 22:35:42 +0100 |
commit | a32c030a6d3d1768a73f87c74f6e6558f0579ec0 (patch) | |
tree | dc29435eddba921f5d1e616f6048b775cd0cd274 /meta-systemd | |
parent | d26edf9dbb78b26407043835d647ed98e751975d (diff) | |
download | meta-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@.service | 3 |
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 | |||
4 | After=syslog.target dropbearkey.service | 4 | After=syslog.target dropbearkey.service |
5 | 5 | ||
6 | [Service] | 6 | [Service] |
7 | ExecStart=-/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22 | 7 | EnvironmentFile=-/etc/default/dropbear |
8 | ExecStart=-/usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -p 22 $DROPBEAR_EXTRA_ARGS | ||
8 | ExecReload=/bin/kill -HUP $MAINPID | 9 | ExecReload=/bin/kill -HUP $MAINPID |
9 | StandardInput=socket | 10 | StandardInput=socket |