Comment 2 for bug 1987147

Revision history for this message
Gordon Harris (wgordonharris) wrote :

Thanks for that.

So, Re use feature flags:

NETPLAN_USE_ROUTES="$(netplan info | grep -c default-routes)"

And, Re use package manage to check netplan's package version:

NETPLAN_VER="$(dpkg-query --showformat='${Version}\n' --show 'netplan.io' | sed -e 's/-.*$//')"