File: system-info

package info (click to toggle)
bup 0.33.9-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,712 kB
  • sloc: python: 15,897; sh: 5,764; ansic: 2,965; pascal: 669; makefile: 21
file content (34 lines) | stat: -rwxr-xr-x 525 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env bash

set -e

uname -a

case "$OSTYPE" in
    linux*)
        cat /proc/cpuinfo
        cat /proc/meminfo
        ;;
    freebsd*)
        sysctl hw.machine hw.machine_arch hw.model hw.ncpu
        sysctl hw.{phys,user,real}mem
        ;;
    darwin*)
        system_profiler SPHardwareDataType
        ;;
esac

set -x

git --version
rsync --version

# Older versions of par2 don't support -V, but it'll still show the
# version when it fails.
if command -v par2; then par2 -V || true; fi

df -h
mount

id
pwd