File: server

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 (16 lines) | stat: -rwxr-xr-x 190 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if ! [ "$NEW_INSTALL" ]; then
	exit 3
fi

/usr/lib/tasksel/tests/desktop
ret=$?
case $ret in
	0|2) # is desktop
		exit 3 # not server
	;;
	*)
		exit 2 # likely is server
	;;
esac