#!/bin/sh

# The purpose of this is to demonstrate how the sync_modules work. They need
# to create a directory, make files in that directory where you would want
# them placed on the real system, then return with an 'echo' of what directory
# you just wrote in. This will be called by wwnodes --sync for each of the
# node groups. Wwnodes will then automatically remove the directory that the 
# module created. 
#
# wwnodes will call on this script module with a single argument which
# indicates which node group it is currently working on.

SYNCDIR=`mktemp -d /tmp/XXXXXX`

mkdir -p $SYNCDIR/etc

echo "nodegroup:[$1]" > $SYNCDIR/etc/nodegroup

echo $SYNCDIR
