Commit 579f2d8e authored by anonym's avatar anonym

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) {
# connections. We drop any previous state so it won't
# interfere.
$state{$1} = "";
} elsif ($text =~ /\(([^)]+)\): supplicant connection state:.*-> (.*)$/) {
# Wireless connection state transition.
} elsif ($text =~ /\(([^)]+)\): supplicant (?:connection|interface) state: \S+ -> (\S+)/ ||
$text =~ /\(([^)]+)\): device state change: \S+ -> (\S+)/) {
# State transition.
$state{$1} = $2;
} elsif ($text =~ /Activation \(([^)]+)\/[^)]*\): association took too long/) {
# Wireless connection failure. If it happens during
......
Markdown is supported
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