Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > a236490a0bae2ac1e70bb5fdb2392dfa > scriptlet

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