Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / tasks / 40InstallUnattend.in @ 61e43304

History | View | Annotate | Download (629 Bytes)

1
#! /bin/bash
2

    
3
### BEGIN TASK INFO
4
# Provides:		InstallUnattend
5
# RunBefore:		UmountImage
6
# RunAfter:		MountImage
7
# Short-Description:	Installs Unattend.xml for unattended windows setup
8
### END TAST INFO
9

    
10
set -e
11
. @commondir@/common.sh
12

    
13
if [ -z "$SNF_IMAGE_TARGET" ]; then
14
    log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing"	
15
fi
16

    
17
if [ "$SNF_IMAGE_TYPE" != "ntfsdump" ]; then
18
    exit 0
19
fi
20

    
21
if [ -f @commondir@/unattend.xml ]; then
22
    cat @commondir@/unattend.xml > $SNF_IMAGE_TARGET/Unattend.xml
23
else
24
    log_error "File \`@commondir@/unattend.xml' is missing."
25
fi
26

    
27
exit 0
28

    
29
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai :