summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2014-06-02 16:29:49 -0400
committerBill Peck <bpeck@redhat.com>2014-06-02 16:29:49 -0400
commit39393a8555e0f170fad7a14e966a806a4d2a325b (patch)
tree0f36450610ad8b4e76508df00ff0e217ab074452 /misc
parentf631a2d4d7e0a4780b50031e6cb962602d57a7a6 (diff)
downloadtests-39393a8555e0f170fad7a14e966a806a4d2a325b.tar.gz
tests-39393a8555e0f170fad7a14e966a806a4d2a325b.tar.xz
tests-39393a8555e0f170fad7a14e966a806a4d2a325b.zip
Add hostname and fix appending.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/ipv6/info/collect.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/ipv6/info/collect.sh b/misc/ipv6/info/collect.sh
index 0d91a6c..7191a55 100755
--- a/misc/ipv6/info/collect.sh
+++ b/misc/ipv6/info/collect.sh
@@ -1,8 +1,10 @@
#!/bin/sh
+hostname > $tmpfile
+
tmpfile=$(mktemp)
for dev in $(ip -6 -o a s | grep -v lo | awk '{print $2}'); do
- ip -0 -o a s $dev > $tmpfile
+ ip -0 -o a s $dev >> $tmpfile
ip -6 -o a s $dev >> $tmpfile
done