diff options
-rw-r--r-- | hosts/alsvid200 | 3 | ||||
-rwxr-xr-x | inst | 29 |
2 files changed, 28 insertions, 4 deletions
diff --git a/hosts/alsvid200 b/hosts/alsvid200 index f43a01e..44b4891 100644 --- a/hosts/alsvid200 +++ b/hosts/alsvid200 @@ -19,6 +19,8 @@ extra_pkgs=' sysvinit-core ' +hostname='alsvid200' + locale='en_US' supported_locales='en_US.UTF-8 en_DK.UTF-8' @@ -71,6 +73,7 @@ postinst_pkgs=' libreoffice evince planner ledger minicom htop ntp ncdu + wicd-daemon wicd-gtk wicd-curses wicd-cli wireshark gnome-calculator units fonts-mplus fonts-linuxlibertine fonts-freefont-ttf @@ -181,8 +181,30 @@ do_chroot_setup() EOF chmod a+rx "${target}/sbin/start-stop-daemon" || return 1 - for file in /etc/network/interfaces /etc/networks /etc/hostname \ - /etc/resolv.conf /etc/hosts; do + printf '%s\n' "${hostname}" >"${target}/etc/hostname" + + cat >"${target}/etc/hosts" <<-EOF + 127.0.0.1 localhost + + # The following lines are desirable for IPv6 capable hosts + ::1 ip6-localhost ip6-loopback + fe00::0 ip6-localnet + ff00::0 ip6-mcastprefix + ff02::1 ip6-allnodes + ff02::2 ip6-allrouters + EOF + + mkdir -p "${target}/etc/network" || return 1 + cat >"${target}/etc/network/interfaces" <<-EOF + # This file describes the network interfaces available on your system + # and how to activate them. For more information, see interfaces(5). + + # The loopback network interface + auto lo + iface lo inet loopback + EOF + + for file in /etc/networks /etc/resolv.conf; do if ! [ -f "${file}" ]; then continue fi @@ -375,8 +397,7 @@ do_chroot_cleanup() info 'Cleaning up system' - for file in /etc/network/interfaces /etc/networks /etc/hostname \ - /etc/resolv.conf /etc/hosts; do + for file in /etc/networks /etc/resolv.conf; do if [ -f "${target}${file}.REAL" ]; then mv "${target}${file}.REAL" "${target}${file}" fi |