Drop init scripts dependency from sshd-keygen (#1317722)
This commit is contained in:
parent
9163ba11f1
commit
53c9992786
18
sshd-keygen
18
sshd-keygen
@ -6,8 +6,22 @@
|
|||||||
# variable.
|
# variable.
|
||||||
AUTOCREATE_SERVER_KEYS="RSA ECDSA ED25519"
|
AUTOCREATE_SERVER_KEYS="RSA ECDSA ED25519"
|
||||||
|
|
||||||
# source function library
|
if [ -f /etc/rc.d/init.d/functions ]; then
|
||||||
. /etc/rc.d/init.d/functions
|
# source function library
|
||||||
|
. /etc/rc.d/init.d/functions
|
||||||
|
else
|
||||||
|
# minimal implimantation of success and failure function
|
||||||
|
success()
|
||||||
|
{
|
||||||
|
echo -en $"[ OK ]\r"
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
failure()
|
||||||
|
{
|
||||||
|
echo -en $"[FAILED]\r"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# Some functions to make the below more readable
|
# Some functions to make the below more readable
|
||||||
KEYGEN=/usr/bin/ssh-keygen
|
KEYGEN=/usr/bin/ssh-keygen
|
||||||
|
Loading…
Reference in New Issue
Block a user