diff options
author | Bill Peck <bpeck@redhat.com> | 2014-06-02 16:29:49 -0400 |
---|---|---|
committer | Bill Peck <bpeck@redhat.com> | 2014-06-02 16:29:49 -0400 |
commit | 39393a8555e0f170fad7a14e966a806a4d2a325b (patch) | |
tree | 0f36450610ad8b4e76508df00ff0e217ab074452 | |
parent | f631a2d4d7e0a4780b50031e6cb962602d57a7a6 (diff) | |
download | tests-39393a8555e0f170fad7a14e966a806a4d2a325b.tar.gz tests-39393a8555e0f170fad7a14e966a806a4d2a325b.tar.xz tests-39393a8555e0f170fad7a14e966a806a4d2a325b.zip |
Add hostname and fix appending.
-rwxr-xr-x | misc/ipv6/info/collect.sh | 4 |
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 |