~ubuntu-branches/debian/sid/ltsp/sid

« back to all changes in this revision

Viewing changes to client/chroot-setup/k12linux/010-etc-hosts

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2009-03-08 15:15:08 UTC
  • mfrom: (34.2.22 upstream) (35.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090308151508-egxj8cuh2ts3rmd5
Tags: 5.1.64-1
* new upstream version:
  - localapps:
    + use unix sockets for pulseaudio sound connections
    + use default printer settings 
  - improvements to sound volume code that works with arbitrary audio
    channels
  - xorg configuration: fix code that sets VideoRam 

* ltsp-server-standalone:
  - depend on ldm-server

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
cat <<EOF > /dev/hosts
 
4
#This is a ltsp chroot and this file will be rewritten in boot process
 
5
#of terminal.
 
6
127.0.0.1 localhost
 
7
EOF
 
8
 
 
9
rm -f /etc/hosts
 
10
ln -s ../dev/hosts /etc/hosts
 
11
 
 
12
cat <<EOF > /etc/sysconfig/network
 
13
NETWORKING=yes
 
14
NETWORKING_IPV6=no
 
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
 
22
fi
 
23
EOF