File: ostype_helper

package info (click to toggle)
munin 2.0.63-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,008 kB
  • sloc: perl: 11,644; java: 1,924; sh: 1,619; makefile: 636; javascript: 365; python: 267
file content (15 lines) | stat: -rwxr-xr-x 250 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
# Helper shell to give the OSTYPE

set -eu

UNAME=$(uname)

if [ "$UNAME" = "Linux" ]; then
	echo linux
elif [ "$UNAME" = "GNU/kFreeBSD" ]; then
	echo freebsd
else
	echo >&2 "Failed to determine OSTYPE based on 'uname': $UNAME"
	exit 1
fi