mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 21:31:13 +00:00
Fixed cpu model detection with non-bash bourne shell
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@820 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9e372bc823
commit
a571e24bbf
3
configure
vendored
3
configure
vendored
@ -183,7 +183,6 @@ done
|
||||
|
||||
# ---
|
||||
|
||||
TAB=`echo -n -e "\t"`
|
||||
pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2`
|
||||
pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2`
|
||||
if [ -z "$pparam" ]; then
|
||||
@ -191,7 +190,7 @@ if [ -z "$pparam" ]; then
|
||||
fi
|
||||
pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2`
|
||||
pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2`
|
||||
pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2`
|
||||
pmodel=`cat /proc/cpuinfo |grep -v 'model name'| grep "model" | cut -d ':' -f 2 | cut -d ' ' -f 2`
|
||||
pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2`
|
||||
|
||||
_mmx=no
|
||||
|
Loading…
Reference in New Issue
Block a user