#!/bin/sh # automatically downloads any updated network config files and rehashes inspircd. # add this to your crontab every half hour or so. # BEGIN CONFIG SECTION - edit these as necessary inspircd_conf_dir="/home/synirc/inspircd/conf" # the directory your inspircd config files are kept in inspircd_script="/home/synirc/inspircd/inspircd" # the 'inspircd' perl script # END CONFIG SECTION - do not edit below this line! wget -N http://url/ >/dev/null 2>&1 wget -N -P ${inspircd_conf_dir} -i .inspircd.files 2>&1 | grep "saved" >/dev/null && \ ${inspircd_script} status | grep "is running" >/dev/null && \ ${inspircd_script} rehash >/dev/null || exit 1