This file is indexed.

/etc/init/update-machine-info.conf is in lxc-android-config 0.230+16.04.20160328-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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Update machine information
#
# This will update the hostname and the chassis type of the host

description "Update machine info"

task

start on (started dbus and starting bluetooth)

script
	if [ -x `which getprop` ]; then
		# Only update hostname when machine-info is not present yet
		# as otherwise it could have been overriden by the user
		if [ ! -s /etc/writable/machine-info ]; then
			device=`getprop ro.product.model`
			if [ "$device" != "" ]; then
				hostnamectl --pretty set-hostname "$device"
			fi
		fi

		# When not chassis type is set yet we update it with the
		# value from the touch session configuration. We check this
		# always as we need to care about the case where this
		# updated upstart job was introduced and the machine-info
		# file was already present on the device.
		chassis=`hostnamectl | grep Chassis | cut -d':' -f2`
		if [ -z "$chassis" ]; then
			SESSION_CONF_DIR="/etc/ubuntu-touch-session.d"
			machine=`getprop ro.product.device`

			if [ -s $SESSION_CONF_DIR/$machine.conf ] ; then
				. $SESSION_CONF_DIR/$machine.conf
			elif [ -s $SESSION_CONF_DIR/android.conf ] ; then
				. $SESSION_CONF_DIR/android.conf
			fi

			if [ ! -z "$FORM_FACTOR" ] ; then
					hostnamectl --pretty set-chassis $FORM_FACTOR
			fi
		fi

	fi
end script