#!/bin/sh# Nota bene: if the custom /etc/resolv.conf file was in# chroot_local-includes, it would be installed inside the chroot# before our chroot_local-hooks run. Some of these scripts, needing# a working networking setup, would then awfully break.# Including common functions."${LH_BASE:-/usr/share/live-helper}"/functions.sh# Setting static variablesDESCRIPTION="$(Echo 'setup custom /etc/resolv.conf')"HELP=""USAGE="${PROGRAM}"# Reading configuration filesRead_conffiles config/all config/common config/chrootSet_defaultsEcho_message "Configuring file /etc/resolv.conf"echo'nameserver 127.0.0.1'> /etc/resolv.conf# make sure lh_chroot_resolv will not overwrite our nice,# custom /etc/resolv.conf with a random .orig oneecho'nameserver 127.0.0.1'> /etc/resolv.conf.orig