summaryrefslogtreecommitdiff
path: root/trusty-armhf-nano-lava
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-06-16 13:57:54 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2014-06-16 13:57:54 +0300
commitb60924207ea6e4cd065b4f2760cc77e84a193852 (patch)
treef59a73dd52e26f9f7369bcedfc7ac1196b8d0fc7 /trusty-armhf-nano-lava
parent76b0e550c4de9f8f140afa70cbe24d5934bf2d2e (diff)
Generate the SSH keys if non-existent
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'trusty-armhf-nano-lava')
-rwxr-xr-xtrusty-armhf-nano-lava/customization/includes.chroot/etc/rc.local17
1 files changed, 17 insertions, 0 deletions
diff --git a/trusty-armhf-nano-lava/customization/includes.chroot/etc/rc.local b/trusty-armhf-nano-lava/customization/includes.chroot/etc/rc.local
new file mode 100755
index 0000000..bd2c208
--- /dev/null
+++ b/trusty-armhf-nano-lava/customization/includes.chroot/etc/rc.local
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+#
+# rc.local
+#
+# This script is executed at the end of each multiuser runlevel.
+# Make sure that the script will "exit 0" on success or any other
+# value on error.
+#
+# In order to enable or disable this script just change the execution
+# bits.
+#
+# By default this script does nothing.
+
+# Generate the SSH keys if non-existent
+test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server
+
+exit 0