Added share/xcat/netboot/sles/copy_profile.sh.

This script is used to copy all files belonging to one profile (.pkglist .exlist .postinstall .repolist) to another name.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2122 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sikorsky 2008-09-10 14:46:59 +00:00
parent ac2f90ce64
commit 71d72352fb

View File

@ -0,0 +1,20 @@
#!/bin/sh
if [ -z $1 -o -z $2 ]; then
cat <<END
Usage: $0 {source profile} {destination profile}
END
exit 1
fi
source=$1
dest=$2
for ext in exlist pkglist postinstall repolist; do
if [ -r $source.$ext ]; then
echo cp -b $source.$ext $dest.$ext
cp -b $source.$ext $dest.$ext
fi
done