mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
Indentation fixes
This commit is contained in:
@@ -1001,13 +1001,13 @@ detectkernel () {
|
||||
if [[ "$distro" == "OpenBSD" ]]; then
|
||||
kernel=$(sysctl kern.version|awk -F'[ =:]' 'NR==1{print $3" "$4" "$5}')
|
||||
else
|
||||
# compatibility for older versions of OS X:
|
||||
kernel=$(uname -m && uname -sr)
|
||||
kernel=${kernel//$'\n'/ }
|
||||
#kernel=( $(uname -srm) )
|
||||
#kernel="${kernel[${#kernel[@]}-1]} ${kernel[@]:0:${#kernel[@]}-1}"
|
||||
verboseOut "Finding kernel version...found as '${kernel}'"
|
||||
fi
|
||||
# compatibility for older versions of OS X:
|
||||
kernel=$(uname -m && uname -sr)
|
||||
kernel=${kernel//$'\n'/ }
|
||||
#kernel=( $(uname -srm) )
|
||||
#kernel="${kernel[${#kernel[@]}-1]} ${kernel[@]:0:${#kernel[@]}-1}"
|
||||
verboseOut "Finding kernel version...found as '${kernel}'"
|
||||
fi
|
||||
}
|
||||
# Kernel Version Detection - End
|
||||
|
||||
@@ -1329,34 +1329,33 @@ detectgpu () {
|
||||
}
|
||||
# GPU Detection - End
|
||||
|
||||
DetectIntelGPU() #@ Detect Intel GPU #works in dash
|
||||
{ #@ Run it only on Intel Processors
|
||||
#@ if GPU unknown
|
||||
gpu=$(awk '{print $2}' /proc/fb)
|
||||
# Detect Intel GPU #works in dash
|
||||
# Run it only on Intel Processors if GPU is unknown
|
||||
DetectIntelGPU() {
|
||||
gpu=$(awk '{print $2}' /proc/fb)
|
||||
|
||||
case $gpu in
|
||||
*intel*) gpu=intel ;;
|
||||
esac
|
||||
case $gpu in
|
||||
*intel*) gpu=intel ;;
|
||||
esac
|
||||
|
||||
if [ $gpu = intel ]
|
||||
then
|
||||
#Detect CPU
|
||||
local CPU=$(uname -p | awk '{print $3}')
|
||||
CPU=${CPU#*'-'}; #Detect CPU number
|
||||
if [ $gpu = intel ]; then
|
||||
#Detect CPU
|
||||
local CPU=$(uname -p | awk '{print $3}')
|
||||
CPU=${CPU#*'-'}; #Detect CPU number
|
||||
|
||||
#Detect Intel GPU
|
||||
case $CPU in
|
||||
[3-6][3-9][0-5]|[3-6][3-9][0-5][K-Y]) gpu='Intel HD Graphics' ;; #1st
|
||||
2[1-5][0-3][0-2]*|2390T|2600S) gpu='Intel HD Graphics 2000' ;; #2nd
|
||||
2[1-5][1-7][0-8]*|2105|2500K) gpu='Intel HD Graphics 3000' ;; #2nd
|
||||
32[1-5]0*|3[4-5][5-7]0*|33[3-4]0*) gpu='Intel HD Graphics 2500' ;; #3rd
|
||||
3570K|3427U) gpu='Intel HD Graphics 4000' ;; #3rd
|
||||
4[3-7][0-9][0-5]*) gpu='Intel HD Graphics 4600' ;; #4th Haswell
|
||||
5[5-6]75[C-R]|5350H) gpu='Intel Iris Pro Graphics 6200' ;; #5th Broadwell
|
||||
#6th Skylake
|
||||
#7th Kabylake
|
||||
#8th Cannonlake
|
||||
esac
|
||||
#Detect Intel GPU
|
||||
case $CPU in
|
||||
[3-6][3-9][0-5]|[3-6][3-9][0-5][K-Y]) gpu='Intel HD Graphics' ;; #1st
|
||||
2[1-5][0-3][0-2]*|2390T|2600S) gpu='Intel HD Graphics 2000' ;; #2nd
|
||||
2[1-5][1-7][0-8]*|2105|2500K) gpu='Intel HD Graphics 3000' ;; #2nd
|
||||
32[1-5]0*|3[4-5][5-7]0*|33[3-4]0*) gpu='Intel HD Graphics 2500' ;; #3rd
|
||||
3570K|3427U) gpu='Intel HD Graphics 4000' ;; #3rd
|
||||
4[3-7][0-9][0-5]*) gpu='Intel HD Graphics 4600' ;; #4th Haswell
|
||||
5[5-6]75[C-R]|5350H) gpu='Intel Iris Pro Graphics 6200' ;; #5th Broadwell
|
||||
#6th Skylake
|
||||
#7th Kabylake
|
||||
#8th Cannonlake
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user