Skip to content

Commit

Permalink
Net defaults to all interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Apr 19, 2024
1 parent 5454c47 commit 83cdc52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net.pl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
$cvsdate = strftime("%FT%TZ", gmtime($cd));
}
my $patch = $opts{P};
my $iface = $opts{i};
my $iface = $opts{i} || "all";
my $modify = $opts{m};
my $pseudo = $opts{c};
my $repeat = $opts{N};
Expand Down Expand Up @@ -214,7 +214,7 @@ END
grep { $_ eq $iftype } @allifaces
or die "Unknown interface '$if'";
unless (grep { /^$iftype\d+ at / } @dmesg) {
if ($opts{i} eq "all") {
if (!$opts{i} || $opts{i} eq "all") {
next;
} else {
die "Interface type '$if' does not exist in dmesg";
Expand Down

0 comments on commit 83cdc52

Please sign in to comment.