2012-08-12 04:19:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# set -x
|
|
|
|
|
|
|
|
PORTAGE=/mnt/portage/portage
|
|
|
|
|
|
|
|
emerge -q --sync
|
|
|
|
layman -q -S
|
|
|
|
|
|
|
|
# Delete any package mask
|
|
|
|
[ -f ${PORTAGE}/profiles/hardened/linux/amd64/package.mask ] && rm -f ${PORTAGE}/profiles/hardened/linux/amd64/package.mask
|
|
|
|
# Reenable nvidia
|
2012-11-22 08:35:49 +00:00
|
|
|
perl -i -p -e 's/^(x11-drivers\/nvidia|nvidia|video_cards_nvidia|vdpau|cuda|opencl)/# $1/;' ${PORTAGE}/profiles/hardened/linux/use.mask ${PORTAGE}/profiles/hardened/linux/amd64/use.mask ${PORTAGE}/profiles/hardened/linux/amd64/package.use.mask
|
2012-08-12 04:19:25 +00:00
|
|
|
|
|
|
|
# echo "Cleaning up archives.."
|
|
|
|
eclean -q packages
|
|
|
|
eclean -q distfiles
|