sshd revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
KEYGEN="/usr/bin/ssh-keygen -q"
# Checks to see if RSA, and DSA host keys are available
# if any of these keys are not present, the respective keys are created.
{
keypath=$1
keytype=$2
if [ ! -f $keypath ]; then
if [ $? -eq 0 ]; then
return $?
fi
fi
return 0
}
# This script is being used for two purposes: as part of an SMF
# application.
#
# Both, the SMF methods and sysidconfig/sys-unconfig use different
# arguments..
case $1 in
# sysidconfig/sys-unconfig arguments (-c and -u)
'-c')
;;
'-u')
# sys-unconfig(1M) knows how to remove ssh host keys, so there's
# nothing to do here.
:
;;
# SMF arguments (start and restart [really "refresh"])
'start')
;;
'restart')
if [ -f "$PIDFILE" ]; then
fi
;;
*)
echo "Usage: $0 { start | restart }"
exit 1
;;
esac
exit $?