/etc/init/mtp-state.conf is in mtp-server 0.0.4+15.04.20150219-0ubuntu3~gcc5.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | start on android-container persist.sys.usb.config=* and started lightdm
task
emits android-mtp-on
emits android-mtp-off
script
VAL=$(env | grep persist.sys.usb.config=)
case ${VAL##*=} in
mtp*)
/sbin/initctl emit android-mtp-on
;;
*)
/sbin/initctl emit android-mtp-off
;;
esac
end script
|