Commit 3af1d4dd authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add regex to leave the "refclock" lines alone, which look like

"server 127.127.xxx.xxx ..."
parent 4d55ff29
...@@ -94,6 +94,11 @@ while (<NTP>) { ...@@ -94,6 +94,11 @@ while (<NTP>) {
/^peer.*$/ && do { /^peer.*$/ && do {
last SWITCH1; last SWITCH1;
}; };
# Leave refclock lines alone
/^server.*127\.127.*$/ && do {
print NEW "$_\n";
last SWITCH1;
};
/^server.*$/ && do { /^server.*$/ && do {
last SWITCH1; last SWITCH1;
}; };
......
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