/etc/init/factory-wipe.conf is in ubuntu-touch-session 0.108+16.04.20160407-0ubuntu1.
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 | description "Factory Wipe Watcher"
author "Ricardo Mendoza <ricmm@ubuntu.com>"
start on started lightdm and file FILE=/userdata/.factory_wipe
task
script
# Factory requirement to shutdown the phone if it's booting
# after the production factory reset happened (see recovery)
if [ -e /userdata/.factory_wipe ]; then
sleep 45
rm /userdata/.factory_wipe
echo u > /proc/sysrq-trigger
sleep 1
poweroff -fp
fi
end script
|