blob: 4f44e658f2c991c390eacb70d7c56727e82e575c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
# Copyright 2015 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
set -e
ARCH=$(dpkg --print-architecture)
NUM_CPU=$(grep -c '^processor' /proc/cpuinfo)
DATETIME=$(date +'%Y-%m-%d %H:%M %Z')
for i in ARCH NUM_CPU DATETIME ; do
if [ "$1" = "$i" ] ; then
echo "${!i}"
fi
done
|