summaryrefslogtreecommitdiffstats
path: root/package/dropbear/S50dropbear
diff options
context:
space:
mode:
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>2014-05-28 09:46:20 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-05-28 10:01:44 +0200
commitfe823b63741ba8eca70a534207d655f5affa927c (patch)
tree5c62666a3ede0c183e0dbe5c84a024e6749c49aa /package/dropbear/S50dropbear
parentbf22cea53fa2af48bde3010673d3babee1ae6873 (diff)
downloadbuildroot-fe823b63741ba8eca70a534207d655f5affa927c.tar.gz
buildroot-fe823b63741ba8eca70a534207d655f5affa927c.zip
dropbear: fix missing directory with systemd
The current SysV startup script create a directory which is necessary for dropbear to correctly work. This creation is not done with systemd. Instead of both init creating the directory, we add the creation of this directory to the INSTALL_TARGET_CMDS to make sure it's present. [Peter: use make syntax for TARGET_DIR as pointed out by Thomas] Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/dropbear/S50dropbear')
-rw-r--r--package/dropbear/S50dropbear4
1 files changed, 0 insertions, 4 deletions
diff --git a/package/dropbear/S50dropbear b/package/dropbear/S50dropbear
index a343b9e1c0..f36165ae48 100644
--- a/package/dropbear/S50dropbear
+++ b/package/dropbear/S50dropbear
@@ -10,10 +10,6 @@ start() {
DROPBEAR_ARGS="$DROPBEAR_ARGS -R"
echo -n "Starting dropbear sshd: "
- # Make sure dropbear directory exists
- if [ ! -d /etc/dropbear ] ; then
- mkdir -p /etc/dropbear
- fi
umask 077
start-stop-daemon -S -q -p /var/run/dropbear.pid \
--exec /usr/sbin/dropbear -- $DROPBEAR_ARGS
OpenPOWER on IntegriCloud