fix 10.15 disable script cant read system
This commit is contained in:
parent
9a500d1c0d
commit
2f265f7d96
1 changed files with 9 additions and 0 deletions
9
hidpi.sh
9
hidpi.sh
|
@ -59,6 +59,7 @@ if [[ "${systemLanguage}" == "zh_CN" ]]; then
|
||||||
langChooseResOp3="(3) 手动输入分辨率"
|
langChooseResOp3="(3) 手动输入分辨率"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
|
||||||
|
@ -209,6 +210,14 @@ function generate_restore_cmd()
|
||||||
rm -rf ${thisDir}/tmp/
|
rm -rf ${thisDir}/tmp/
|
||||||
mkdir -p ${thisDir}/tmp/
|
mkdir -p ${thisDir}/tmp/
|
||||||
cat > "${thisDir}/tmp/disable" <<-\CCC
|
cat > "${thisDir}/tmp/disable" <<-\CCC
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
systemVersion=($(sw_vers -productVersion | cut -d "." -f 2))
|
||||||
|
|
||||||
|
if [[ "${systemVersion}" -ge "15" ]]; then
|
||||||
|
sudo mount -uw / && killall Finder
|
||||||
|
fi
|
||||||
|
|
||||||
function get_edid()
|
function get_edid()
|
||||||
{
|
{
|
||||||
local index=0
|
local index=0
|
||||||
|
|
Loading…
Reference in a new issue