diff options
author | root <root@jessyx86.local> | 2016-07-05 17:03:49 +0200 |
---|---|---|
committer | root <root@jessyx86.local> | 2016-07-06 00:02:30 +0200 |
commit | 9824c70507fd02cb61f0d2ac9c982e955cd911bb (patch) | |
tree | f138ef7f640963294a46f27ee7ab1c31e1974e7a /debian/naskpass.postinst | |
parent | e0bf28500af7f6ae498f207562fedb866f12856a (diff) |
naskpass initramfs openssh support
Diffstat (limited to 'debian/naskpass.postinst')
-rwxr-xr-x | debian/naskpass.postinst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/naskpass.postinst b/debian/naskpass.postinst index 4d9cc42..981f62b 100755 --- a/debian/naskpass.postinst +++ b/debian/naskpass.postinst @@ -24,6 +24,11 @@ case "$1" in else nask_deactivate fi + if [ -x /usr/bin/ssh-keygen ]; then + [ -r /etc/initramfs-tools/etc/ssh/ssh_host_rsa_key ] || /usr/bin/ssh-keygen -t rsa -N '' -b 4096 -f /etc/initramfs-tools/etc/ssh/ssh_host_rsa_key + [ -r /etc/initramfs-tools/etc/ssh/ssh_host_dsa_key ] || /usr/bin/ssh-keygen -t dsa -N '' -b 1024 -f /etc/initramfs-tools/etc/ssh/ssh_host_dsa_key + [ -r /etc/initramfs-tools/etc/ssh/authorized_keys ] || touch /etc/initramfs-tools/etc/ssh/authorized_keys + fi update-initramfs -u ;; |