Update config fix return

master-b4
Alan Johnston 1 month ago committed by GitHub
parent 4fe371ce76
commit 2c8022fe79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2251,10 +2251,10 @@ elif [ "$1" = "-V" ]; then
read NEWCPU read NEWCPU
if [ $NEWCPU == "" ] ; then if [ -z $NEWCPU ] ; then
echo "No change to maxcpus" echo "No change to maxcpus"
elif [ $NEWCPU == "0" ] ; then elif [ $NEWCPU == "0" ] ; then
sudo sed -i 's/maxcpus=$CPUS//g' sudo sed -i 's/maxcpus=$CPUS//g' $CMDLINE
echo "Removing maxcpus setting" echo "Removing maxcpus setting"
elif [ $NEWCPU == "1" ] || [ $NEWCPU == "2" ] || [ $NEWCPU == "3" ] ; then elif [ $NEWCPU == "1" ] || [ $NEWCPU == "2" ] || [ $NEWCPU == "3" ] ; then
sudo sed -i "s/maxcpus=$CPUS/maxcpus=$NEWCPU/g" $CMDLINE sudo sed -i "s/maxcpus=$CPUS/maxcpus=$NEWCPU/g" $CMDLINE

Loading…
Cancel
Save

Powered by TurnKey Linux.