4
#This is a ltsp chroot and this file will be rewritten in boot process
10
ln -s ../dev/hosts /etc/hosts
12
cat <<EOF > /etc/sysconfig/network
15
HOSTNAME=localhost.localdomain
16
/bin/grep -q "Generated by ltsp-client" /etc/hosts 2> /dev/null
17
if [ \$? -ne 0 ]; then
18
ipaddr=\$(ip addr show scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",\$2) }')
19
echo "# Generated by ltsp-client during bootup" >> /etc/hosts
20
echo "127.0.0.1 localhost" >> /etc/hosts
21
echo "\$ipaddr client-\$ipaddr" >> /etc/hosts