Commit 579f2d8e authored by anonym's avatar anonym
Browse files

Fix state recording in tails-restircted-network-detector.

Apparently NetworkManager can say a few different things when it logs
the device state transitions.
parent 95de82a5
...@@ -62,8 +62,9 @@ while(my $sl = $parser->next) { ...@@ -62,8 +62,9 @@ while(my $sl = $parser->next) {
# connections. We drop any previous state so it won't # connections. We drop any previous state so it won't
# interfere. # interfere.
$state{$1} = ""; $state{$1} = "";
} elsif ($text =~ /\(([^)]+)\): supplicant connection state:.*-> (.*)$/) { } elsif ($text =~ /\(([^)]+)\): supplicant (?:connection|interface) state: \S+ -> (\S+)/ ||
# Wireless connection state transition. $text =~ /\(([^)]+)\): device state change: \S+ -> (\S+)/) {
# State transition.
$state{$1} = $2; $state{$1} = $2;
} elsif ($text =~ /Activation \(([^)]+)\/[^)]*\): association took too long/) { } elsif ($text =~ /Activation \(([^)]+)\/[^)]*\): association took too long/) {
# Wireless connection failure. If it happens during # Wireless connection failure. If it happens during
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment