scripts: Minor fix, reenable nvidia for conky
This commit is contained in:
parent
3af847d78b
commit
f5d580820a
@ -14,9 +14,9 @@ make install
|
|||||||
|
|
||||||
cp /usr/src/linux/.config /etc/kernels/kernel-config-${NEW}
|
cp /usr/src/linux/.config /etc/kernels/kernel-config-${NEW}
|
||||||
|
|
||||||
# rm -f /boot/*.previous
|
# rm -f /boot/*.old
|
||||||
if [ -f "/boot/initrd-${NEW}" ] ; then
|
if [ -f "/boot/initrd-${NEW}" ] ; then
|
||||||
mv "/boot/initrd-${NEW}" "/boot/initrd-${NEW}.previous"
|
mv "/boot/initrd-${NEW}" "/boot/initrd-${NEW}.old"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dracut -H --force --strip /boot/initrd-${NEW} ${NEW}
|
dracut -H --force --strip /boot/initrd-${NEW} ${NEW}
|
||||||
|
@ -9,7 +9,7 @@ layman -q -S
|
|||||||
# Delete any package mask
|
# Delete any package mask
|
||||||
[ -f ${PORTAGE}/profiles/hardened/linux/amd64/package.mask ] && rm -f ${PORTAGE}/profiles/hardened/linux/amd64/package.mask
|
[ -f ${PORTAGE}/profiles/hardened/linux/amd64/package.mask ] && rm -f ${PORTAGE}/profiles/hardened/linux/amd64/package.mask
|
||||||
# Reenable nvidia
|
# 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.."
|
# echo "Cleaning up archives.."
|
||||||
eclean -q packages
|
eclean -q packages
|
||||||
|
Loading…
Reference in New Issue
Block a user