mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
16 lines
349 B
Bash
Executable File
16 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
|
|
arch=$(uname -m)
|
|
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 stop
|
|
/usr/local/etc/rc.d/squid poll
|
|
echo "" > ${squid_dir}/cache/swap.state
|
|
/usr/local/etc/rc.d/squid start
|
|
fi
|