apk_add $@ if ! [ test -e /etc/squid ]; then mkdir -p /etc/squid; fi echo "visible_hostname test.domain" >> /etc/squid/squid.conf /etc/init.d/$@ start pidof squid /etc/init.d/$@ stop i=10; while pidof $@; do \ [ $i -eq 0 ] && exit 1; \ i=$((i - 1)); \ sleep 1; \ done apk_del $@