File: system_info

package info (click to toggle)
xdg-utils 1.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,268 kB
  • ctags: 321
  • sloc: sh: 7,394; perl: 274; makefile: 190; xml: 32
file content (23 lines) | stat: -rwxr-xr-x 455 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

parentdir=${0%/*}
which perl >/dev/null 2>&1
if [ "$?" ] ; then
	distro=`perl $parentdir/linux_distro 2>&1`
else
	distro="not available (couldn't find perl)"
fi

echo "distribution: $distro"

echo "xdg-utils:" `xdg-mime --version | cut -d ' ' -f 2`

. "$parentdir/desktop_environment"

detail=`uname -a`
echo "uname: $detail"

echo "xset data:"
echo "-------------------------------------"
xset q
echo "-------------------------------------"