| 1 |
#!/usr/bin/env bash |
| 2 |
# shellcheck disable=SC2154 |
| 3 |
# these top lines are moved during build |
| 4 |
|
| 5 |
# check cpu nx flag |
| 6 |
nxcheck() { |
| 7 |
if grep -qFw nx /proc/cpuinfo; then |
| 8 |
echo_message '\033[32mYes\033[m\n\n' '' '' '' |
| 9 |
else |
| 10 |
echo_message '\033[31mNo\033[m\n\n' '' '' '' |
| 11 |
fi |
| 12 |
} |