]> arthur.barton.de Git - bup.git/blob - dev/system-info
git: close PackIdxList on init failures
[bup.git] / dev / system-info
1 #!/usr/bin/env bash
2
3 set -e
4
5 uname -a
6
7 case "$OSTYPE" in
8     linux*)
9         cat /proc/cpuinfo
10         cat /proc/meminfo
11         ;;
12     freebsd*)
13         sysctl hw.machine hw.machine_arch hw.model hw.ncpu
14         sysctl hw.{phys,user,real}mem
15         ;;
16     darwin*)
17         system_profiler SPHardwareDataType
18         ;;
19 esac
20
21 set -x
22
23 git --version
24 rsync --version
25
26 # Older versions of par2 don't support -V, but it'll still show the
27 # version when it fails.
28 if command -v par2; then par2 -V || true; fi
29
30 df -h
31 mount
32
33 id
34 pwd