diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-10-08 21:17:07 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-10-08 21:17:07 +0200 |
commit | 66186e072d9a6605509def4bf6895cfaab0900c0 (patch) | |
tree | c4fccb45f89d9cd68ceca5d919dfa9ba6322af7d /scripts | |
parent | 2b2b8e3a4073cec8546a9662e390f9a4ddd31119 (diff) | |
download | vyatta-cfg-system-66186e072d9a6605509def4bf6895cfaab0900c0.tar.gz vyatta-cfg-system-66186e072d9a6605509def4bf6895cfaab0900c0.zip |
Even more specific regex.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyos-intfwatchd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyos-intfwatchd b/scripts/vyos-intfwatchd index 27ae35f3..d5f6753b 100644 --- a/scripts/vyos-intfwatchd +++ b/scripts/vyos-intfwatchd @@ -131,7 +131,7 @@ $SIG{'KILL'} = sub { exit(0); }; while(<HANDLE>) { - if( $_ =~ /^[0-9]+:\s+(.*)(@.*)*:\s+<.*UP,.*>/ ) + if( $_ =~ /^[0-9]+:\s+([^@]+)(@.*)*:\s+<.*UP,.*>/ ) { my $intf_name = $1; my $intf = new Vyatta::Interface($intf_name); |