#!/bin/sh -e # Source functions library . /etc/chroot.d/functions cd /var/lib/lldpd force= if [ "$1" = "force" ]; then force=-f shift fi # Usual configs for f in localtime hosts services {host,nsswitch,resolv}.conf; do Copy -m644 $force "/etc/$f" "etc/$f" done copy_resolv_conf