Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > media > main-release > by-pkgid > 5b9267fd77054b05ee7ea0b6dddd5190 > scriptlet

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