Skip to content

Commit

Permalink
Init: symlink led-torch after all kernel modules are loaded
Browse files Browse the repository at this point in the history
* This commit removes the "wait ...", and instead executes the symlink task after all kernel modules are already loaded
* Resolves the "wait ... timed out and took 5s" init warning

Signed-off-by: chickendrop89 <[email protected]>
  • Loading branch information
chickendrop89 committed Aug 13, 2023
1 parent d9bdf4e commit c4cbfcd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions recovery/root/init.recovery.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ on fs
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
write /proc/sys/kernel/firmware_config/force_sysfs_fallback 1

# Symlink Flashlight
on fs
wait /sys/class/leds/led:torch/brightness
symlink /sys/class/leds/led:torch/brightness /system/etc/flashlight/brightness

on fs
chmod 0660 /dev/qseecom
chown system drmrpc /dev/qseecom
Expand All @@ -50,3 +45,7 @@ on property:twrp.modules.loaded=true
on property:twrp.modules.loaded=true
write /sys/class/leds/vibrator/trigger transient
start vibratorfeature-hal-service

# Symlink Flashlight
on property:twrp.modules.loaded=true
symlink /sys/class/leds/led:torch/brightness /system/etc/flashlight/brightness

0 comments on commit c4cbfcd

Please sign in to comment.