summaryrefslogtreecommitdiff
path: root/dropbear
diff options
context:
space:
mode:
Diffstat (limited to 'dropbear')
-rw-r--r--dropbear/dropbear_0.41.oe13
1 files changed, 6 insertions, 7 deletions
diff --git a/dropbear/dropbear_0.41.oe b/dropbear/dropbear_0.41.oe
index 2af7555229..fad6f34904 100644
--- a/dropbear/dropbear_0.41.oe
+++ b/dropbear/dropbear_0.41.oe
@@ -22,13 +22,12 @@ do_install_prepend () {
}
pkg_postinst_append () {
-if [ "x$D" = "x" ]; then
- if [ ! -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then
- dropbearkey -t rsa -f ${sysconfdir}/dropbear/dropbear_rsa_host_key
- fi
- if [ ! -f "${sysconfdir}/dropbear/dropbear_dss_host_key" ]; then
- dropbearkey -t dss -f ${sysconfdir}/dropbear/dropbear_dss_host_key
- fi
+if [ -n "$D" ]; then exit 1; fi
+if [ ! -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then
+ dropbearkey -t rsa -f ${sysconfdir}/dropbear/dropbear_rsa_host_key
+fi
+if [ ! -f "${sysconfdir}/dropbear/dropbear_dss_host_key" ]; then
+ dropbearkey -t dss -f ${sysconfdir}/dropbear/dropbear_dss_host_key
fi
}