mirror of
https://github.com/xzhih/one-key-hidpi.git
synced 2026-04-13 01:13:42 +08:00
fix 10.15 disable script cant read system
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user