ml|
public text v1 · immutable#!/bin/bashOUT_DIR=${1}if [ "" = "${OUT_DIR}" ]then OUT_DIR=/etc/unboundficd ${OUT_DIR}wget 'http://secspider.cs.ucla.edu/trust-anchors.conf' --quiet -O ./trust-anchors.conf.tmpif test 0 -ne $?then echo "Unable to grab TAs"else cmp ./trust-anchors.conf ./trust-anchors.conf.tmp >/dev/null if test 0 -ne $? then cp ./trust-anchors.conf.tmp ./trust-anchors.conf /etc/init.d/unbound restart fi rm -f ./trust-anchors.conf.tmpfi