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/-.*$//')"
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/-.*$//')"