diff options
author | hubertf <hubertf@pkgsrc.org> | 2002-11-10 05:30:59 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2002-11-10 05:30:59 +0000 |
commit | 0bf707ed8afff3738f283a63b01c78befde3d241 (patch) | |
tree | 6ac95c03a22c1b13b4e877b218d960bd09bfa78f /net | |
parent | 194712b957b57ac31eb8674e3ece3c0b8ca95dc7 (diff) | |
download | pkgsrc-0bf707ed8afff3738f283a63b01c78befde3d241.tar.gz |
Handle ifconfig aliases better.
Patch contributed by Ed Gould <ed@left.wing.org> in PR pkg/18999
Diffstat (limited to 'net')
-rwxr-xr-x | net/6to4/files/6to4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/6to4/files/6to4 b/net/6to4/files/6to4 index 8f753bdb1dd..18f5e31c240 100755 --- a/net/6to4/files/6to4 +++ b/net/6to4/files/6to4 @@ -57,7 +57,7 @@ if (`ifconfig -a | grep fe80: | wc -l` <= 0 or # # Figure out IP#s etc. # -$localadr4 = `ifconfig $out_if inet | grep inet`; +$localadr4 = `ifconfig $out_if inet | grep inet | grep -v alias`; $localadr4 =~ s/^.*inet\s*//; $localadr4 =~ s/\s.*$//; chomp($localadr4); |