Skip to content

Commit 8f24b4b

Browse files
committed
implement #212, fix for #208
1 parent cd27fbb commit 8f24b4b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

xsos

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# xsos v0.7.10 last mod 2016/09/09
2+
# xsos v0.7.11 last mod 2017/03/17
33
# Latest version at <http://github.com/ryran/xsos>
44
# RPM packages available at <http://people.redhat.com/rsawhill/rpms>
55
# Copyright 2012-2016 Ryan Sawhill Aroha <[email protected]>
@@ -15,6 +15,9 @@
1515
# General Public License <gnu.org/licenses/gpl.html> for more details.
1616
#-------------------------------------------------------------------------------
1717

18+
# See https://github.com/ryran/xsos/issues/208
19+
export LC_ALL=en_US.UTF-8
20+
1821
# Get version from line #2
1922
version=$(sed '2q;d' $0)
2023

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

15281531
# Print it all out

0 commit comments

Comments
 (0)