Friday, July 18, 2014

Turn Off All CPUs except the 0


for i in `busybox seq 1 9`
do
if [ -e /sys/devices/system/cpu/cpu${i}/online ]
then
echo 0 〉 /sys/devices/system/cpu/cpu${i}/online
fi
done