Bug #8691

net-routing-setup does a match for "current=enabled" against the ipv[46]-routing "persistent" field

Added by C Fraire 11 months ago. Updated 11 months ago.

Status:NewStart date:2017-09-29
Priority:NormalDue date:
Assignee:C Fraire% Done:


Target version:-
Difficulty:Bite-size Tags:needs-triage


net-routing-setup does a check to determine "Are we routing dynamically?", but the nawk prog prints field $2 (persistence=enabled|disabled) and tries to match "current=enabled".

The nawk prog should just print $0 for the matching input.


#1 Updated by Gordon Ross 11 months ago

BTW, one could probably do this just with sh (or ksh) script code, avoiding the need to run nawk for this case.
Using nawk is fine where it makes sense, but people often use it when it's really not needed...

Also available in: Atom