#! /bin/bash ### BEGIN TASK INFO # Provides: InstallUnattend # RunBefore: UmountImage # RunAfter: MountImage # Short-Description: Installs Unattend.xml for unattended windows setup ### END TAST INFO set -e . @commondir@/common.sh if [ -z "$SNF_IMAGE_TARGET" ]; then log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing" fi if [ "$SNF_IMAGE_TYPE" != "ntfsdump" ]; then exit 0 fi if [ -f @commondir@/unattend.xml ]; then cat @commondir@/unattend.xml > $SNF_IMAGE_TARGET/Unattend.xml else log_error "File \`@commondir@/unattend.xml' is missing." fi exit 0 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :