1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh arch=$(cat /etc/arch) pb=/var/portbuild . ${pb}/${arch}/portbuild.conf host=$(hostname) test -f ${pb}/${arch}/portbuild.${host} && . ${pb}/${arch}/portbuild.${host} if [ ! -z "${squid_dir}" ] ; then /usr/local/etc/rc.d/squid.sh stop /usr/local/etc/rc.d/squid.sh poll echo "" > ${squid_dir}/cache/swap.state /usr/local/etc/rc.d/squid.sh start fi