summaryrefslogtreecommitdiff
path: root/data/openssh/sshd-keygen-wrapper
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-02 08:12:33 +0000
committerJay Freeman <saurik@saurik.com>2008-01-02 08:12:33 +0000
commitd226560b85a70759b17943113f54eaf230717156 (patch)
tree48a36e95218fa788f1e285f68a8f66158cbe4cad /data/openssh/sshd-keygen-wrapper
parent7fe4faa796d3393f6a806c3ebb56c0a2792c1144 (diff)
Fixed a bunch of massively broken dependencies and got OpenSSH working.
git-svn-id: http://svn.telesphoreo.org/trunk@9 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/openssh/sshd-keygen-wrapper')
-rwxr-xr-xdata/openssh/sshd-keygen-wrapper7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/openssh/sshd-keygen-wrapper b/data/openssh/sshd-keygen-wrapper
new file mode 100755
index 000000000..07f2631e3
--- /dev/null
+++ b/data/openssh/sshd-keygen-wrapper
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ ! -f /etc/ssh/ssh_host_key ] && ssh-keygen -q -t rsa1 -f /etc/ssh/ssh_host_key -N "" -C "" < /dev/null > /dev/null 2> /dev/null
+[ ! -f /etc/ssh/ssh_host_rsa_key ] && ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" -C "" < /dev/null > /dev/null 2> /dev/null
+[ ! -f /etc/ssh/ssh_host_dsa_key ] && ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -N "" -C "" < /dev/null > /dev/null 2> /dev/null
+
+exec /usr/sbin/sshd $@