mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 07:33:01 +02:00
16 lines
230 B
Bash
Executable File
16 lines
230 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if sshd -t; then
|
|
initctl cond set ssh-hostkeys
|
|
exit 0
|
|
fi
|
|
|
|
if sshd -t 2>&1 |grep hostkeys; then
|
|
ssh-keygen -A
|
|
initctl cond set ssh-hostkeys
|
|
else
|
|
logger -t sshd "invadlid sshd_config, check with: sshd -t"
|
|
fi
|
|
|
|
exit 0
|