Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 5b326f3f58ad21c8e26d040742bd85ca > scriptlet

perl-Razor-Agent-2.85-1mdv2009.1.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