Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
ff53d8d3
Unverified
Commit
ff53d8d3
authored
Apr 17, 2019
by
jkhsjdhjs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_cpu, get_gpu, get_model: shorten iPhone OS cases
parent
3cdcfc2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
neofetch
neofetch
+11
-18
No files found.
neofetch
View file @
ff53d8d3
...
...
@@ -1085,6 +1085,7 @@ get_model() {
"iPad2,"[1-4]): "iPad 2" ;;
"iPad3,"[1-3]): "iPad 3" ;;
"iPad3,"[4-6]): "iPad 4" ;;
"iPad6,1"[12]): "iPad 5" ;;
"iPad7,"[5-6]): "iPad 6" ;;
"iPad4,"[1-3]): "iPad Air" ;;
"iPad5,"[3-4]): "iPad Air 2" ;;
...
...
@@ -1101,10 +1102,6 @@ get_model() {
"iPad5,"[1-2]): "iPad mini 4" ;;
"iPad11,"[1-2]): "iPad mini 5" ;;
"iPad6,11" | "iPad 6,12")
: "iPad 5"
;;
"iPhone1,1"): "iPhone" ;;
"iPhone1,2"): "iPhone 3G" ;;
"iPhone2,1"): "iPhone 3GS" ;;
...
...
@@ -1118,16 +1115,15 @@ get_model() {
"iPhone8,1"): "iPhone 6s" ;;
"iPhone8,2"): "iPhone 6s Plus" ;;
"iPhone8,4"): "iPhone SE" ;;
"iPhone9,"[13]): "iPhone 7" ;;
"iPhone9,"[24]): "iPhone 7 Plus" ;;
"iPhone10,"[14]): "iPhone 8" ;;
"iPhone10,"[25]): "iPhone 8 Plus" ;;
"iPhone10,"[36]): "iPhone X" ;;
"iPhone11,2"): "iPhone XS" ;;
"iPhone11,"[46]): "iPhone XS Max" ;;
"iPhone11,8"): "iPhone XR" ;;
"iPhone9,1" | "iPhone9,3"): "iPhone 7" ;;
"iPhone9,2" | "iPhone9,4"): "iPhone 7 Plus" ;;
"iPhone10,1" | "iPhone10,4"): "iPhone 8" ;;
"iPhone10,2" | "iPhone10,5"): "iPhone 8 Plus" ;;
"iPhone10,3" | "iPhone10,6"): "iPhone X" ;;
"iPhone11,4" | "iPhone11,6"): "iPhone XS Max" ;;
"iPod1,1"): "iPod touch" ;;
"ipod2,1"): "iPod touch 2G" ;;
"ipod3,1"): "iPod touch 3G" ;;
...
...
@@ -1881,11 +1877,11 @@ get_cpu() {
"iPhone5,"[1-4]): "Apple A6 (2) @ 1.3GHz" ;;
"iPhone6,"[1-2]): "Apple A7 (2) @ 1.3GHz" ;;
"iPhone7,"[1-2]): "Apple A8 (2) @ 1.4GHz" ;;
"iPhone8,"[1-4] | "iPad6,1
1" | "iPad6,12"
): "Apple A9 (2) @ 1.85GHz" ;;
"iPhone8,"[1-4] | "iPad6,1
"[12]
): "Apple A9 (2) @ 1.85GHz" ;;
"iPhone9,"[1-4] | "iPad7,"[5-6]): "Apple A10 Fusion (4) @ 2.34GHz" ;;
"iPhone10,"[1-6]): "Apple A11 Bionic (6) @ 2.39GHz" ;;
"iPhone11,
2" | "iPhone11,4" | "iPhone11,6" | "iPhone11,8"
| "iPad11,"[1-4])
"iPhone11,
"[2468]
| "iPad11,"[1-4])
: "Apple A12 Bionic (6) @ 2.49GHz"
;;
...
...
@@ -2199,6 +2195,7 @@ get_gpu() {
case "$kernel_machine" in
"iPhone1,"[1-2]): "PowerVR MBX Lite 3D" ;;
"iPhone5,"[1-4]): "PowerVR SGX543MP3" ;;
"iPhone11,"[2468]): "G11P" ;;
"iPad3,"[1-3]): "PowerVR SGX534MP4" ;;
"iPad3,"[4-6]): "PowerVR SGX554MP4" ;;
"iPad5,"[3-4]): "PowerVR GXA6850" ;;
...
...
@@ -2220,7 +2217,7 @@ get_gpu() {
: "PowerVR GX6450"
;;
"iPhone8,"[1-4] | "iPad6,1
1" | "iPad6,12"
)
"iPhone8,"[1-4] | "iPad6,1
"[12]
)
: "PowerVR GT7600"
;;
...
...
@@ -2228,10 +2225,6 @@ get_gpu() {
: "PowerVR GT7600 Plus"
;;
"iPhone11,2" | "iPhone11,4" | "iPhone11,6" | "iPhone11,8")
: "G11P"
;;
"iPod1,1" | "iPod2,1")
: "PowerVR MBX Lite"
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment