Let's try it this way

This commit is contained in:
Nehemiah of Zebulun 2023-12-05 12:19:54 -05:00
parent bc98308d88
commit d0c4fd7003
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
#!/system/bin/sh
touch /mnt/catscreen
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

View File

@ -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
exec - root -- /system/bin/catscreen.sh