File: server

package info (click to toggle)
tasksel 3.31%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 8,156 kB
  • ctags: 57
  • sloc: perl: 690; sh: 213; makefile: 127
file content (16 lines) | stat: -rwxr-xr-x 190 bytes parent folder | download | duplicates (10)
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