Skip to content

Commit

Permalink
trim veths too (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Jun 25, 2008
1 parent 659255c commit f8d4e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ifw
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh

ifconfig "$@" 2>&1 | \
perl -0777pe 's/^lo\s.*?\n\n//ms; s/.*(packets|collisions|Interrupt).*\n//g'
perl -0777pe 's/^(lo|veth[1-9])\s.*?\n\n//ms;
s/.*(packets|collisions|Interrupt).*\n//g'

iwconfig 2>&1 | \
perl -0777pe 's/.*\sno wireless extensions.*\n\n//g;
Expand Down

0 comments on commit f8d4e0d

Please sign in to comment.