File: new-install

package info (click to toggle)
tasksel 3.85
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,636 kB
  • sloc: perl: 703; sh: 219; makefile: 133
file content (34 lines) | stat: -rwxr-xr-x 607 bytes parent folder | download | duplicates (13)
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