use/net: Fix 50-net-nm configuration

NM_CONTROLLED should always be set together with DISABLED;
otherwise, it's possible to reach the state where
DISABLED=no but NM_CONTROLLED=yes, and have the interface
controlled by both NM and etcnet.
This commit is contained in:
Ivan A. Melnikov
2021-03-12 14:34:36 +04:00
committed by Anton Midyukov
parent c4979e84dc
commit 6741ce4edf

View File

@ -6,5 +6,6 @@ defcfg=/etc/net/ifaces/default/options-eth
if [ -x /usr/sbin/NetworkManager -o -x /usr/sbin/connmand ]; then
shell_config_set "$defcfg" NM_CONTROLLED yes
shell_config_set "$defcfg" DISABLED yes
shell_config_set "$defcfg" BOOTPROTO static
fi