if dpkg --compare-versions "$2" le-nl "1.2.2-0ubuntu4"; then
mkdir -p /etc/NetworkManager/conf.d || true
# for old versions, override the global config with a null config
touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
Should have ge-nl rather than le-nl? Seems like it's backwards and that all new installs need the override, rather than old installs.
Also, why the decision to only do a netplan on install?
Ah, so this code:
if dpkg --compare-versions "$2" le-nl "1.2.2-0ubuntu4"; then ager/conf. d || true ager/conf. d/10-globally- managed- devices. conf
mkdir -p /etc/NetworkMan
# for old versions, override the global config with a null config
touch /etc/NetworkMan
Should have ge-nl rather than le-nl? Seems like it's backwards and that all new installs need the override, rather than old installs.
Also, why the decision to only do a netplan on install?