Hide WPA authentication parameters and comments when including network configuration in bug reports (bug #555680)

svn path=/dists/trunk/linux-2.6/; revision=14660
This commit is contained in:
Ben Hutchings 2009-11-21 18:22:26 +00:00
parent 43a99cfc3a
commit b2e6a82217
2 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View File

@ -11,6 +11,8 @@ linux-2.6 (2.6.32~rc8-1~experimental.1) UNRELEASED; urgency=low
* r8169: Remove firmware for RTL8168D v1 and v2 and use
request_firmware() to load it
* DocBook: Fix build breakage
* Hide WPA authentication parameters and comments when including network
configuration in bug reports
[ Bastian Blank ]
* [mips] Don't force EMBEDDED on.

View File

@ -4,9 +4,9 @@ add_network() {
echo '** Network interface configuration:' >&3
# Hide passwords/keys
awk '$1 ~ /^wireless-key/ { gsub(".", "*", $2); }
awk '$1 ~ /key|pass|^wpa-(anonymous|identity|phase|pin|private|psk)/ { gsub(".", "*", $2); }
$1 == "ethtool-wol" { gsub(".", "*", $3); }
{ print; }
!/^[[:space:]]*\#/ { print; }
' </etc/network/interfaces >&3
echo >&3
echo '** Network status:' >&3