Files
nanoBench/enable-HT.sh
Andreas Abel a01b9742c7 Initial commit
2019-02-20 14:57:43 +01:00

10 lines
183 B
Bash
Executable File

#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
for cpu in /sys/devices/system/cpu/cpu[1-9]*; do
echo 1 > "$cpu/online"
done