aboutsummaryrefslogtreecommitdiff
path: root/package/dropbear/dropbear.service
diff options
context:
space:
mode:
Diffstat (limited to 'package/dropbear/dropbear.service')
-rw-r--r--package/dropbear/dropbear.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/dropbear/dropbear.service b/package/dropbear/dropbear.service
index 9dcbf256cd..1eb42f9d09 100644
--- a/package/dropbear/dropbear.service
+++ b/package/dropbear/dropbear.service
@@ -11,10 +11,12 @@ After=syslog.target network.target auditd.service
ExecStartPre=/bin/sh -c '\
if [ -L /etc/dropbear \
-a "$(readlink /etc/dropbear)" = "/var/run/dropbear" ]; then \
- if rm -f /etc/dropbear; then \
+ if rm -f /etc/dropbear >/dev/null 2>&1; then \
mkdir -p /etc/dropbear; \
else \
- mkdir -p $(readlink /etc/dropbear); \
+ echo "No persistent location to store SSH host keys. New keys will be"; \
+ echo "generated at each boot. Are you sure this is what you want to do?"; \
+ mkdir -p "$(readlink /etc/dropbear)"; \
fi; \
fi'
ExecStart=/usr/sbin/dropbear -F -R