Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
4fa38acd
You need to sign in or sign up before continuing.
Commit
4fa38acd
authored
Mar 15, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: Added switch between NetworkManager (etcnet) and NetworkManager (native)
NetworkManager (etcnet) is default now.
parent
6741ce4e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
config.mk
features.in/net/config.mk
+6
-0
50-net-nm
features.in/net/rootfs/image-scripts.d/50-net-nm
+4
-0
No files found.
features.in/net/config.mk
View file @
4fa38acd
+nm: use/net/nm; @:
+nm: use/net/nm; @:
+nm-native: use/net/nm/native; @:
use/net: use/services use/pkgpriorities
use/net: use/services use/pkgpriorities
@$(call add_feature)
@$(call add_feature)
...
@@ -21,6 +22,11 @@ use/net/nm: use/net
...
@@ -21,6 +22,11 @@ use/net/nm: use/net
@$(call add,DEFAULT_SERVICES_ENABLE,network) # need for NM?
@$(call add,DEFAULT_SERVICES_ENABLE,network) # need for NM?
@$(call add,DEFAULT_SERVICES_ENABLE,NetworkManager ModemManager)
@$(call add,DEFAULT_SERVICES_ENABLE,NetworkManager ModemManager)
@$(call add,DEFAULT_SERVICES_ENABLE,livecd-save-nfs) # keep interface up
@$(call add,DEFAULT_SERVICES_ENABLE,livecd-save-nfs) # keep interface up
@$(call xport,NM_native)
# use NetworkManager(native)
use/net/nm/native: use/net/nm
@$(call set,NM_Native,yes)
# NOT recommended unless you know what you're doing
# NOT recommended unless you know what you're doing
# (e.g. dnsmasq can win a race against dhcpcd)
# (e.g. dnsmasq can win a race against dhcpcd)
...
...
features.in/net/rootfs/image-scripts.d/50-net-nm
View file @
4fa38acd
...
@@ -7,5 +7,9 @@ defcfg=/etc/net/ifaces/default/options-eth
...
@@ -7,5 +7,9 @@ defcfg=/etc/net/ifaces/default/options-eth
if
[
-x
/usr/sbin/NetworkManager
-o
-x
/usr/sbin/connmand
]
;
then
if
[
-x
/usr/sbin/NetworkManager
-o
-x
/usr/sbin/connmand
]
;
then
shell_config_set
"
$defcfg
"
NM_CONTROLLED
yes
shell_config_set
"
$defcfg
"
NM_CONTROLLED
yes
shell_config_set
"
$defcfg
"
DISABLED
yes
shell_config_set
"
$defcfg
"
DISABLED
yes
if
[
NM_Native
=
'yes'
]
;
then
shell_config_set
"
$defcfg
"
BOOTPROTO static
shell_config_set
"
$defcfg
"
BOOTPROTO static
else
shell_config_set
"
$defcfg
"
BOOTPROTO dhcp
fi
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment