J'essaie de configurer mon disque RAM pour lancer deux jeux de scripts. 1 est ramdisk /sbin seulement, les autres sont des scripts autorisés par l'utilisateur.
# Check Properties
on property:dp.early_init.done=1
chmod 0777 /data/dp_scripts/onearlyinit.sh
exec /data/dp_scripts/onearlyinit.sh &
start dp_early_init
on property:dp.init.done=1
chmod 0777 /data/dp_scripts/oninit.sh
exec /data/dp_scripts/oninit.sh &
start dp_init
on property:dp.late_init.done=1
chmod 0777 /data/dp_scripts/onlateinit.sh
exec /data/dp_scripts/onlateinit.sh &
start dp_late_init
on property:dp.post_fs.done=1
chmod 0777 /data/dp_scripts/onpostfs.sh
exec /data/dp_scripts/onpostfs.sh &
start dp_post_fs
on property:dp.post_fs_data.done=1
chmod 0777 /data/dp_scripts/onpostfsdata.sh
exec /data/dp_scripts/onpostfsdata.sh &
start dp_post_fs_data
on property:dp.boot.done=1
chmod 0777 /data/dp_scripts/onboot.sh
exec /data/dp_scripts/onboot.sh &
start dp_boot
on property:sys.boot_completed=1
chmod 0777 /data/dp_scripts/onpostboot.sh
exec /data/dp_scripts/onpostboot.sh &
export PATH /sbin:/system/bin
start dp_post_boot
on property:sys.shutdown.requested=1
chmod 0777 /data/dp_scripts/onshutdown.sh
exec /data/dp_scripts/onshutdown.sh &
start dp_shutdown
# DP Services
service dp_early_init /sbin/bash /sbin/0/onearlyinit.sh
user root
disabled
oneshot
service dp_init /sbin/bash /sbin/0/oninit.sh
user root
disabled
oneshot
service dp_late_init /sbin/bash /sbin/0/onlateinit.sh
user root
disabled
oneshot
service dp_post_fs /sbin/bash /sbin/0/onpostfs.sh
user root
disabled
oneshot
service dp_post_fs_data /sbin/bash /sbin/0/onpostfsdata.sh
user root
disabled
oneshot
service dp_boot /sbin/bash /sbin/0/onboot.sh
user root
disabled
oneshot
service dp_post_boot /sbin/bash /sbin/0/onpostboot.sh
class late_start
user root
disabled
oneshot
service dp_shutdown /sbin/bash /sbin/0/onshutdown.sh
user root
disabled
oneshot
Bien que les services eux-mêmes soient tous en feu, l'exécution de la /data/dp_scripts/*
Les scripts n'arrivent jamais.
Il s'agit d'un noyau lollipop, fonctionnant sur un Note 3.
Comment puis-je forcer l'exécution de /data/dp_scripts/*
aux moments spécifiés ?