net: 50-net-nm band-aid again
When renaming HOSTNAME in the alterator, switches managing interface to etcnet. This creates problems for users. This partial reverts commit d4170557c272aaa328e470ef178001f93c2b02dd.
This commit is contained in:
parent
72cbb58490
commit
7a6c9a8a13
10
features.in/net/rootfs/image-scripts.d/50-net-nm
Executable file
10
features.in/net/rootfs/image-scripts.d/50-net-nm
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
. shell-config
|
||||
|
||||
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" BOOTPROTO static
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user