commit 781e7f5c98145efa9c4a76d36872db02b5bfca42 from: gonzalo date: Wed Nov 07 09:04:48 2018 UTC script for cleaning ports machines before a new build/test commit - 0391bd759d46e4b93c51b30f0f92a5060e354ab2 commit + 781e7f5c98145efa9c4a76d36872db02b5bfca42 blob - /dev/null blob + f2b038f5f6ed6c4831b534ebcf815458bdead942 (mode 755) --- /dev/null +++ limpiar @@ -0,0 +1,14 @@ +#!/bin/sh + +## Check root +if test $(whoami) != root; then + doas "$0" "$@" + exit $? +fi + +pkg_delete -cqqxX /var/db/pkg/*-firmware-[0-9]* >/dev/null +rm -rf /usr/local/{.[!.],}* /var/db/pkg/{.[!.],}* /usr/ports/pobj +mtree -qdef /etc/mtree/4.4BSD.dist -p / -U +mtree -qdef /etc/mtree/BSD.x11.dist -p / -U +ln -sf /etc/X11/app-defaults /usr/local/lib/X11/app-defaults +ldconfig -RU