Drop init scripts dependency from sshd-keygen (#1317722)

This commit is contained in:
Jakub Jelen 2016-03-15 09:05:38 +01:00
parent 9163ba11f1
commit 53c9992786

View File

@ -6,8 +6,22 @@
# variable.
AUTOCREATE_SERVER_KEYS="RSA ECDSA ED25519"
# source function library
. /etc/rc.d/init.d/functions
if [ -f /etc/rc.d/init.d/functions ]; then
# 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
KEYGEN=/usr/bin/ssh-keygen