Update config -V fixes

master-b4
Alan Johnston 3 months ago committed by GitHub
parent 9ff2826f63
commit 097ac6ac84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2241,7 +2241,7 @@ elif [ "$1" = "-V" ]; then
if [ -z "$param2" ] ; then
if [ "$param2" = "1" ] || [ "$param2" = "2" ] || [ "$param2" = "3" ]
if [ "$param2" = "1" ] || [ "$param2" = "2" ] || [ "$param2" = "3" ] ; then
sudo sed -i 's/maxcpus=$CPUS/maxcpus=$param2/g'
echo "Setting maxcpus="$param2
@ -2250,6 +2250,8 @@ elif [ "$1" = "-V" ]; then
echo "invalid maxcpus value"
fi
else
echo "Current maxcpus="$CPUs
@ -2260,9 +2262,9 @@ elif [ "$1" = "-V" ]; then
read NEWCPU
if [ $NEWCPU = "" ]
if [ $NEWCPU = "" ] ; then
echo "No change to maxcpus"
if [ $NEWCPU = "0" ]
elif [ $NEWCPU = "0" ]
sudo sed -i 's/maxcpus=$CPUS//g'
echo "Removing maxcpus setting"
elif [ $NEWCPU = "1" ] || [ $NEWCPU = "2" ] || [ $NEWCPU = "3" ] |

Loading…
Cancel
Save

Powered by TurnKey Linux.