summaryrefslogtreecommitdiff
path: root/recipes/angstrom/angstrom-version/lsb_release
blob: 11b48141f56fcbe79fca428ce8b6aa148edb9cbf (plain)
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
35
36
37
38
39
40
41
42
43
#!/bin/sh
VERSION="$(cat /etc/angstrom-version | head -n1 | awk '{print $2}')"
CODENAME="foo"

case $1 in
"-v")
	echo "No LSB modules are available."
	;;
"-i")
	echo "Distributor ID: Angstrom"
	;;
"-d")
	echo "Description:    Angstrom GNU/Linux $VERSION ($CODENAME)"
	;;
"-r")
	echo "Release:        $VERSION"
	;;
"-c")
	echo "Codename:       $CODENAME"
	;;
"-a")
	echo "Distributor ID: Angstrom"
	echo "Description:    Angstrom GNU/Linux $VERSION ($CODENAME)"
	echo "Release:        $VERSION" 
	echo "Codename:       $CODENAME"
	;;
"-s")
	echo "No LSB modules are available."
	;;
*)
	echo "Usage: lsb_release [options]"
	echo ""
	echo "Options:"
	echo "  -h, --help         show this help message and exit"
	echo "  -v, --version      show LSB modules this system supports"
	echo "  -i, --id           show distributor ID"
	echo "  -d, --description  show description of this distribution"
	echo "  -r, --release      show release number of this distribution"
	echo "  -c, --codename     show code name of this distribution"
	echo "  -a, --all          show all of the above information"
	echo "  -s, --short        show requested information in short format"
;;
esac