mirror of
https://github.com/xzhih/one-key-hidpi.git
synced 2026-04-13 01:13:42 +08:00
Workaround for csr-active-config E7030000
PS: Add gitignore
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.DS_Store
|
||||||
|
._*
|
||||||
10
hidpi.sh
10
hidpi.sh
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
sipChecker=($(csrutil status | awk '{ print $5 }'))
|
sipInfo=("$(csrutil status)")
|
||||||
systemVersion=($(sw_vers -productVersion | cut -d "." -f 2))
|
systemVersion=($(sw_vers -productVersion | cut -d "." -f 2))
|
||||||
systemLanguage=($(locale | grep LANG | sed s/'LANG='// | tr -d '"' | cut -d "." -f 1))
|
systemLanguage=($(locale | grep LANG | sed s/'LANG='// | tr -d '"' | cut -d "." -f 1))
|
||||||
|
|
||||||
@@ -68,9 +68,11 @@ downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/master"
|
|||||||
# downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/dev"
|
# downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/dev"
|
||||||
# downloadHost="http://127.0.0.1:8080"
|
# downloadHost="http://127.0.0.1:8080"
|
||||||
|
|
||||||
if [ "${sipChecker}" != "disabled." ]; then
|
if [[ "${sipInfo}" == *"Filesystem Protections: disabled"* ]] || [[ "$(awk '{print $5}' <<< "${sipInfo}")" == "disabled." ]]; then
|
||||||
echo "${disableSIP}";
|
:
|
||||||
exit 0
|
else
|
||||||
|
echo "${disableSIP}";
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${systemVersion}" -ge "15" ]]; then
|
if [[ "${systemVersion}" -ge "15" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user