summaryrefslogtreecommitdiffstats
path: root/tests/new-install
blob: 88a7d87379f60834b298a94adf6ce3fd4186524c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
#
# Controls behavior for a task on new install or not. 
#
# To enable this test insert your tasks stanza a keyword like:
#
# Test-new-install: mark skip
#
# This will cause the task to be marked for install on new install, and
# hidden otherwise.

if [ "$NEW_INSTALL" ]; then
	var=$2
else
	var=$3
fi

case "$var" in
	install)
		exit 0 # do not display, but do install task
	;;
	skip)
		exit 1 # do not display task
	;;
	mark)
		exit 2 # display task, marked for installation
	;;
	show)
		exit 3 # display task, not marked for installation
	;;
	*)
		exit 1 # unknown value, skip the task
	;;
esac