/etc/init/set.pretty-hostname.conf is in lxc-android-config 0.162.
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 | # Set pretty hostname
#
# This sets the pretty hostname in /etc/machine-info to the model name
description "Set pretty hostname"
task
start on (started dbus and starting bluetooth)
script
if [ -x `which getprop` ] && [ ! -s /etc/writable/machine-info ]; then
device=`getprop ro.product.model`
if [ "$device" != "" ]; then
hostnamectl --pretty set-hostname "$device"
fi
fi
end script
|