-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.sh
More file actions
22 lines (16 loc) · 737 Bytes
/
Copy pathservice.sh
File metadata and controls
22 lines (16 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/system/bin/sh
# Chimera Service Launcher
# 1. Warten auf Boot_Completed (Wichtig!)
until [ "$(getprop sys.boot_completed)" = "1" ]; do
sleep 1
done
# Kleiner Sicherheitspuffer
sleep 5
# Debug-Log schreiben (damit wir wissen, dass der Service lebt)
echo "[$(date)] Chimera Service: Starting Controller..." > /cache/chimera_boot.log
# 2. BERECHTIGUNG ENTFERNT!
# (Der chmod-Befehl war hier und hat den "read-only filesystem" Crash verursacht)
# 3. Controller starten (im Hintergrund mit nohup)
# Wir rufen explizit "sh" auf. Damit umgehen wir alle potenziellen Rechte-Probleme!
nohup sh /system/bin/chimera_controller.sh > /dev/null 2>&1 &
echo "[$(date)] Chimera Service: Controller command issued." >> /cache/chimera_boot.log