Statistics
| Branch: | Tag: | Revision:

root / helper / tasks / 40InstallUnattend @ 91af2694

History | View | Annotate | Download (511 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
. /usr/share/snf-image/common.sh
12

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

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

    
21
if [ -e /usr/share/snf-image/unattend.xml ]; then
22
	cat /usr/share/snf-image/unattend.xml > $SNF_IMAGE_TARGET/Unattend.xml
23
fi
24

    
25
exit 0