Guest User

Untitled

a guest
Jan 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for i in {16..63}; do
  4. if [[ "$1" == "enable" ]]; then
  5. echo 1 > /sys/devices/system/cpu/cpu$i/online
  6. elif [[ "$1" == "disable" ]]; then
  7. echo 0 > /sys/devices/system/cpu/cpu$i/online
  8. else
  9. echo 'illegal parameter'
  10. fi
  11. done
  12. grep "processor" /proc/cpuinfo
Add Comment
Please, Sign In to add comment