#!/bin/sh

#     DESCRIPTION
#
# Permit root login via ssh


#     REQUIRES
#


#     INFO
#

NAME="init3-permit-sshd-root"

verbose()
{
    if [ -n "$GLOBAL_VERBOSE" ]; then
        echo "HOOK: $NAME: $@"
    fi
}

verbose "has started"
config="/etc/openssh/sshd_config"

if [ -w "$config" ]; then
    sed -i 's,#PermitRootLogin.*,PermitRootLogin yes,' "$config"
fi

verbose "finished"
