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

Loading…
Cancel
Save

Powered by TurnKey Linux.