scripts: Minor fix, reenable nvidia for conky

This commit is contained in:
Stefan Reimer 2013-02-04 11:15:57 -08:00
parent 3af847d78b
commit f5d580820a
2 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ make install
cp /usr/src/linux/.config /etc/kernels/kernel-config-${NEW}
# rm -f /boot/*.previous
# rm -f /boot/*.old
if [ -f "/boot/initrd-${NEW}" ] ; then
mv "/boot/initrd-${NEW}" "/boot/initrd-${NEW}.previous"
mv "/boot/initrd-${NEW}" "/boot/initrd-${NEW}.old"
fi
dracut -H --force --strip /boot/initrd-${NEW} ${NEW}

View File

@ -9,7 +9,7 @@ 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
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
perl -i -p -e 's/^(app-admin\/conky nvidia|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
# echo "Cleaning up archives.."
eclean -q packages