Skip to content

Commit

Permalink
implement #212, fix for #208
Browse files Browse the repository at this point in the history
  • Loading branch information
ryran committed Mar 17, 2017
1 parent cd27fbb commit 8f24b4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xsos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# xsos v0.7.10 last mod 2016/09/09
# xsos v0.7.11 last mod 2017/03/17
# Latest version at <http://github.com/ryran/xsos>
# RPM packages available at <http://people.redhat.com/rsawhill/rpms>
# Copyright 2012-2016 Ryan Sawhill Aroha <[email protected]>
Expand All @@ -15,6 +15,9 @@
# General Public License <gnu.org/licenses/gpl.html> for more details.
#-------------------------------------------------------------------------------

# See https://github.com/ryran/xsos/issues/208
export LC_ALL=en_US.UTF-8

# Get version from line #2
version=$(sed '2q;d' $0)

Expand Down Expand Up @@ -1522,7 +1525,7 @@ CPUINFO() {
# Check important cpu flags
# pae=physical address extensions * lm=64-bit * vmx=Intel hw-virt * svm=AMD hw-virt
# ht=hyper-threading * aes=AES-NI * constant_tsc=Constant Time Stamp Counter
cpu_flags=$(egrep -o "pae|lm|vmx|svm|ht|aes|constant_tsc|rdrand" <"$cpuinfo_input" | sort -u | sed ':a;N;$!ba;s/\n/,/g')
cpu_flags=$(egrep -o "pae|lm|vmx|svm|ht|aes|constant_tsc|rdrand|nx" <"$cpuinfo_input" | sort -u | sed ':a;N;$!ba;s/\n/,/g')
[[ -n $cpu_flags ]] && cpu_flags="(flags: $cpu_flags)"

# Print it all out
Expand Down

0 comments on commit 8f24b4b

Please sign in to comment.