generate ssh keys

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-06-16 11:14:50 +02:00
commit cc144d9e8f
5 changed files with 38 additions and 53 deletions

View file

@ -1,17 +1,16 @@
#!/bin/sh
#Create all the symlinks to /bin/busybox
# Create all the symlinks to /bin/busybox
/bin/busybox --install -s
#Mount things needed by this script
# Mount things needed by this script
mount -t proc proc /proc
mount -t sysfs sysfs /sys
#Disable kernel messages from popping onto the screen
# Disable kernel messages from popping onto the screen
echo 0 > /proc/sys/kernel/printk
#Create device nodes
# Create device nodes
mknod /dev/null c 1 3
mknod /dev/tty c 5 0
mdev -s
@ -24,5 +23,10 @@ udevadm trigger --action=add --type=subsystems
udevadm trigger --action=add --type=devices
udevadm settle
# /bin/sshd
# Generate keys for sshd
echo "Generating keys for sshd"
ssh-keygen -A
exec sh