summaryrefslogtreecommitdiff
path: root/stretch-armhf-alip/customization/includes.chroot/etc/rc.local
blob: 1f1d7434ec25f5e01af82d565b35c8976143b21f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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_rsa_key || dpkg-reconfigure openssh-server

# workaround for https://bugs.debian.org/850614
test -f /etc/ssh/ssh_host_dsa_key || ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa

exit 0