]> arthur.barton.de Git - bup.git/blob - dev/system-info
cc2d3958ea1ea2cc29c4d0376415c7823eb8f27f
[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     darwin*)
13         system_profiler SPHardwareDataType
14     ;;
15 esac
16
17 set -x
18
19 git --version
20 rsync --version
21
22 # Older versions of par2 don't support -V, but it'll still show the
23 # version when it fails.
24 if command -v par2; then par2 -V || true; fi
25
26 df -h
27 mount
28
29 id
30 pwd