suspend_blocker: move service to init fragment

This commit is contained in:
Konsta
2025-03-16 12:37:54 +02:00
parent 9d4665d9c8
commit aa51dae2c2
3 changed files with 6 additions and 6 deletions

View File

@@ -11,8 +11,3 @@ on post-fs-data
mkdir /data/vendor/wifi 0770 wifi wifi
mkdir /data/vendor/wifi/wpa 0770 wifi wifi
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
service suspend_blocker_rpi /vendor/bin/suspend_blocker_rpi
class early_hal # Start together with system_suspend HAL
group system
user root

View File

@@ -5,7 +5,8 @@
cc_binary {
name: "suspend_blocker_rpi",
srcs: ["suspend_blocker_rpi.cpp"],
init_rc: ["suspend_blocker_rpi.rc"],
vendor: true,
srcs: ["suspend_blocker_rpi.cpp"],
shared_libs: ["libpower"],
}

View File

@@ -0,0 +1,4 @@
service suspend_blocker_rpi /vendor/bin/suspend_blocker_rpi
class early_hal # Start together with system_suspend HAL
group system
user root