source:
freewrt/package/openssh/files/S50sshd@
475ad56
| Last change on this file since 475ad56 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 315 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | for type in rsa dsa; do { |
| 4 | # check for keys |
| 5 | key=/etc/ssh/ssh_host_${type}_key |
| 6 | [ ! -f $key ] && { |
| 7 | # generate missing keys |
| 8 | [ -x /usr/bin/ssh-keygen ] && { |
| 9 | /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec $0 $* |
| 10 | } & |
| 11 | exit 0 |
| 12 | } |
| 13 | }; done |
| 14 | mkdir -p /var/empty |
| 15 | /usr/sbin/sshd |
Note:
See TracBrowser
for help on using the repository browser.
