#!/bin/sh
#
#  This script copies "essential" files from the host to the new
# system.
#
# Steve
# --
# $Id: 60-copy-host-files,v 1.4 2005/12/26 18:33:01 steve Exp $



prefix=$1

cp /etc/resolv.conf ${prefix}/etc/
cp /etc/passwd      ${prefix}/etc/
cp /etc/shadow      ${prefix}/etc/
cp /etc/group       ${prefix}/etc/
cp /etc/gshadow     ${prefix}/etc/

#
# Copy the sudoers file.  Install the package too ?
#
if [ -e /etc/sudoers ]; then
    cp /etc/sudoers ${prefix}/etc/
    chmod 440 ${prefix}/etc/sudoers
fi

