diff --git a/catscreen.sh b/catscreen.sh index 225dd4e..1dce69d 100755 --- a/catscreen.sh +++ b/catscreen.sh @@ -1,3 +1,9 @@ #!/system/bin/sh -touch /mnt/catscreen \ No newline at end of file +touch /mnt/cats22flip + +if getprop debug.tracing.battery_stats.screen |grep -iq 0;then + echo "0" > /sys/class/leds/keyboard_light/brightness +else + echo "255" > /sys/class/leds/keyboard_light/brightness +fi \ No newline at end of file diff --git a/wephone.rc b/wephone.rc index 469940e..15da3da 100644 --- a/wephone.rc +++ b/wephone.rc @@ -2,7 +2,7 @@ on boot exec - root -- /system/bin/wephone.sh on property:debug.tracing.battery_stats.screen=1 - exec - root -- echo "255" > /sys/class/leds/keyboard_light/brightness + exec - root -- /system/bin/catscreen.sh on property:debug.tracing.battery_stats.screen=0 - exec - root -- echo "0" > /sys/class/leds/keyboard_light/brightness \ No newline at end of file + exec - root -- /system/bin/catscreen.sh \ No newline at end of file