# This file gets copied as /init.bullhead.diag.rc

on post-fs-data
    # Modem logging collection
    mkdir /data/diag_logs 0777 system system

on boot
    chmod 666 /dev/diag

service cnss_diag /system/bin/cnss_diag --q
    class late_start
    user root
    group root
    oneshot