更新 min-brightness.sh
This commit is contained in:
1 parent
380e50e268
commit
e047f5e3e6
1 file changed
+1
-1
+1
-1
@@ -6,7 +6,7 @@
|
||||
BRIGHTNESS_FILE=/sys/devices/platform/mtk-leds/leds/lcd-backlight/brightness
|
||||
BRIGHTNESS="$(cat "$BRIGHTNESS_FILE")"
|
||||
|
||||
if [ "$BRIGHTNESS" -lt 15 ]; then
|
||||
if [[ $BRIGHTNESS -lt 2 && $BRIGHTNESS -ne 0 ]]; then
|
||||
settings put system screen_brightness 2
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user