40InstallUnattend.sh 509 Bytes
Newer Older
Nikos Skalkotos's avatar
Nikos Skalkotos committed
1
2
3
4
#! /bin/sh

### BEGIN TASK INFO
# Provides:		InstallUnattend
Nikos Skalkotos's avatar
Nikos Skalkotos committed
5
6
# RunBefore:		UmountImage
# RunAfter:		MountImage
Nikos Skalkotos's avatar
Nikos Skalkotos committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Short-Description:	Installs Unattend.xml for unattended windows setup
### END TAST INFO

set -e
. /usr/share/snf-image/common.sh

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

if [ "$SNF_IMAGE_TYPE" != "ntfsdump" ]; then
	exit 0
fi

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

exit 0