cf/client/ddns.rc

21 lines
655 B
Plaintext

# Android init service definition for the DDNS reporter.
#
# Install: push this file to /system/etc/init/ddns.rc (chmod 644, chown root:root)
# and reboot the device. `sys.boot_completed=1` triggers the service after the
# boot animation finishes.
#
# NOTE: Android's init enforces SELinux. On many devices the `su` domain cannot
# be entered by init. If `logcat -s init:*` shows a denial, use the nohup
# fallback documented in README.md instead.
service ddns /system/bin/sh /data/local/tmp/ddns-report.sh
class late_start
user root
group root
oneshot
disabled
seclabel u:r:su:s0
on property:sys.boot_completed=1
start ddns