root / snf-image-helper / tasks / 40InstallUnattend.in @ 3179b447
History | View | Annotate | Download (572 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 [ -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 |
26 |
|
27 |
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai : |