File: server

package info (click to toggle)
tasksel 3.68%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,580 kB
  • sloc: perl: 699; sh: 214; makefile: 127
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