fix cut command so it works with busybox cut
This commit is contained in:
parent
dd384344bd
commit
531df9fff9
1 changed files with 3 additions and 3 deletions
|
@ -523,7 +523,7 @@ void get_info()
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
gpu = popen("wmic PATH Win32_VideoController GET Name | sed -n 2p", "r");
|
gpu = popen("wmic PATH Win32_VideoController GET Name | sed -n 2p", "r");
|
||||||
#else
|
#else
|
||||||
gpu = popen("lspci -mm 2> /dev/null | grep \"VGA\" | cut --fields=4,6 -d '\"' --output-delimiter=\" \" | sed \"s/ Controller.*//\"", "r");
|
gpu = popen("lspci -mm 2> /dev/null | grep \"VGA\" | cut -f 4,6 -d '\"' -d \" \" | sed \"s/ Controller.*//\"", "r");
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
gpu = popen("system_profiler SPDisplaysDataType | awk -F ': ' '/Chipset Model: /{ print $2 }'", "r");
|
gpu = popen("system_profiler SPDisplaysDataType | awk -F ': ' '/Chipset Model: /{ print $2 }'", "r");
|
||||||
|
|
Loading…
Reference in a new issue