From da36357b4f2eea6f86aa9823b8c5a4f505b94b12 Mon Sep 17 00:00:00 2001 From: ArenM Date: Mon, 14 Aug 2023 14:19:32 -0400 Subject: [PATCH] Remove dead code from setpermissions /sys/class/wakeup was used when we would check active_count to guess the wakeup reason. /sys/power/wakeup_count was a failed attempt to avoid using doas in sxmo_wakelock.sh. Signed-off-by: Willow Barraco --- scripts/core/sxmo_setpermissions.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/core/sxmo_setpermissions.sh b/scripts/core/sxmo_setpermissions.sh index b5f401f..36cc546 100755 --- a/scripts/core/sxmo_setpermissions.sh +++ b/scripts/core/sxmo_setpermissions.sh @@ -18,8 +18,6 @@ fi # users can override this in sxmo_deviceprofile_mydevice.sh files="${SXMO_SYS_FILES:-"/sys/power/state /sys/power/mem_sleep /dev/rtc0"}" -for file in $files /sys/power/wakeup_count; do +for file in $files; do [ -e "$file" ] && chmod a+rw "$file" done - -chmod -R a+rw /sys/class/wakeup/*