blob: 4b778cf29a55111e13e785cb2960f3cd1b21b54d (
plain)
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
|
#!/bin/bash
set -e
pushd /etc/sysconfig/ >/dev/null || exit 1
cat > ifconfig.eth0 << "EOF"
ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.196
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
EOF
popd >/dev/null || exit 1
cat > /etc/resolv.conf << "EOF"
# Begin /etc/resolv.conf
nameserver 192.168.1.10
domain berzerkula.org
search berzerkula.org
# End /etc/resolv.conf
EOF
echo "lfs" > /etc/hostname
cat > /etc/hosts << "EOF"
# Begin /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.1.1 lfs.berzerkula.org lfs
192.168.1.196 lfs.berzerkula.org lfs
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# End /etc/hosts
EOF
|