INITD=distccd PKGS="$@ binutils uclibc-dev" apk_add $PKGS /etc/init.d/$INITD start sleep 2 pidof $INITD echo -e '#include \nint main() {\n\tputs("hello world"); return 0; }' > hello.c cc -o hello hello.c ./hello rm hello DISTCC_HOSTS="127.0.0.1:3632" distcc gcc -o hello hello.c ./hello readelf -d hello sleep 3 /etc/init.d/$INITD stop count=0;\ while pidof $INITD && [ $$count -lt 10 ]; do\ echo -n "." >/dev/tty;\ sleep 1;\ count=$((count + 1));\ done apk_del $PKGS