Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 136ec68c7d47bf2c0c86ecb14af81cae > scriptlet

perl-Razor-Agent-2.850.0-9.mga4.x86_64.rpm

POSTIN

/bin/sh
# only do this if we have a working network and if the config file contains just one line
if [ "`cat /etc/razor/razor-agent.conf|wc -l`" -eq "1" ] ; then
    if /usr/sbin/hping -c 4 -p 2703 --tcpexitcode discovery.razor.cloudmark.com >/dev/null 2>&1; then
        /usr/bin/razor-admin -d -create -home=/etc/razor
    else
        echo "You might want to run \"/usr/bin/razor-admin -d -create -home=/etc/razor\" when your network works"
    fi
fi