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:
@@ -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/*
|
||||
|
Reference in New Issue
Block a user