1
0
mirror of synced 2026-04-28 05:04:57 +00:00
Files
xen-tools.xen-tools/etc/hook.d/65-copy-user-files
steve 2862fb995d 2006-05-24 19:35:16 by steve
More updates.
2006-05-24 19:35:16 +00:00

30 lines
427 B
Bash
Executable File

#!/bin/sh
#
# Copy files from a 'skel' directory, if present, into the
# new images
#
prefix=$1
dist=$2
#
# This script doesn't do anything different on a per-distribution basis
#
if [ -d /etc/xen-tools/skel ]; then
#
# Copy everything from skel directory, even "dotfiles".
#
(cd /etc/xen-tools/skel; tar -cf - . ) | (cd ${prefix}/; tar -xpf -)
else
echo "skel directory not present, ignoring."
fi