blob: c73fef6538fb4a61349bb5516fa4855d61782c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
echo "$i['$HOSTNAME']=\"${!i}\""
done
|