#!/bin/ksh BLOCK=`mktemp /tmp/dshield.XXXX` BLOCKASC=${BLOCK}.asc touch $BLOCKASC lynx -source http://feeds.dshield.org/block.txt > $BLOCK lynx -source http://feeds.dshield.org/block.txt.asc > $BLOCKASC if gpgv -q --keyring /root/.gnupg/pubring.gpg $BLOCKASC then pfctl -v -v -t dshield -T replace `grep ^[0123456789] $BLOCK \ | awk '{print $1 "/" $3}'` | grep -v ^\ rm $BLOCK $BLOCKASC exit 0 fi rm $BLOCK $BLOCKASC echo bad sig! exit 2