mirror of
https://github.com/Snigdha-OS/snigdhaos-system-installation.git
synced 2025-09-21 05:44:57 +02:00
@eshanized: push via push.sh!!!
This commit is contained in:
@@ -13,4 +13,16 @@ numberofcores=$(grep -c ^processor /proc/cpuinfo)
|
|||||||
if [ $numberofcores -gt 1 ]; then
|
if [ $numberofcores -gt 1 ]; then
|
||||||
echo "TOTAL CORES : "$numberofcores
|
echo "TOTAL CORES : "$numberofcores
|
||||||
echo "Changing makeflags for "$numberofcores "cores."
|
echo "Changing makeflags for "$numberofcores "cores."
|
||||||
sudo sed -i ''
|
sudo sed -i 's/#MAKEFLAGS="-j2" /MAKEFLAGS="-j'$((numberofcores+1))'"/g' /etc/makepkg.conf
|
||||||
|
echo "Changing Compression..."
|
||||||
|
sudo sed -i 's/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -z --threads=0 -)/g' /etc/makepkg.conf
|
||||||
|
sudo sed -i 's/COMPRESSZST=(zstd -c -z -)/COMPRESSZST=(zstd -c -z --threads=0 -)/g' /etc/makepkg.conf
|
||||||
|
echo "Changing Default PKGEXT"
|
||||||
|
sudo sed -i "s/PKGEXT='.pkg.tar.xz'/PKGEXT='.pkg.tar.zst'/g" /etc/makepkg.conf
|
||||||
|
else
|
||||||
|
echo "Nothing Changed!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "---> End snigdhaos-all-cores <---"
|
||||||
|
echo
|
||||||
|
Reference in New Issue
Block a user