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 <contact@willowbarraco.fr>
This commit is contained in:
ArenM
2023-08-14 14:19:32 -04:00
committed by Willow Barraco
parent 0d56424cbc
commit da36357b4f

View File

@@ -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/*