Update config added -V reboot needed print

master-b4
Alan Johnston 4 weeks ago committed by GitHub
parent 1ff50a99ea
commit 41452efcf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2261,6 +2261,7 @@ elif [ "$1" = "-V" ]; then
elif [ $NEWCPU == "0" ] ; then
echo "Removing maxcpus setting"
sudo sed -i "s/maxcpus=$CPUS //g" $CMDLINE
echo "This change will happen after you reboot"
elif [ $NEWCPU == "1" ] || [ $NEWCPU == "2" ] || [ $NEWCPU == "3" ] ; then
echo "Setting maxcpus="$NEWCPU
if [ -z "$CPUS" ] ; then
@ -2268,6 +2269,7 @@ elif [ "$1" = "-V" ]; then
else
sudo sed -i "s/maxcpus=$CPUS/maxcpus=$NEWCPU/g" $CMDLINE
fi
echo "This change will happen after you reboot"
else
echo "Invalid maxcpus setting. No change made."
fi
@ -2281,9 +2283,11 @@ elif [ "$1" = "-V" ]; then
else
sudo sed -i "s/maxcpus=$CPUS/maxcpus=$param2/g" $CMDLINE
fi
echo "This change will happen after you reboot"
elif [ "$param2" == "0" ] ; then
echo "Removing maxcpus setting"
sudo sed -i "s/maxcpus=$CPUS //g" $CMDLINE
echo "This change will happen after you reboot"
else
echo "invalid maxcpus value. No change mode."
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.