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
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
7459a74a
Commit
7459a74a
authored
Feb 01, 2017
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: adjust accordingly
Refer to net-dns feature where appropriate (it actually started out as an extension of net feature but the reasons to separate it quickly became apparent to me).
parent
e4bd17cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
config.mk
features.in/net/config.mk
+1
-2
50-net-resolv
features.in/net/rootfs/image-scripts.d/50-net-resolv
+2
-0
No files found.
features.in/net/config.mk
View file @
7459a74a
...
...
@@ -31,4 +31,4 @@ use/net/connman: use/net
use/net/networkd: use/net
@$(call add,THE_PACKAGES,systemd-networkd)
@$(call add,DEFAULT_SERVICES_ENABLE,systemd-networkd)
\ No newline at end of file
@$(call add,DEFAULT_SERVICES_ENABLE,systemd-networkd)
features.in/net/rootfs/image-scripts.d/50-net-resolv
View file @
7459a74a
#!/bin/sh
# offer some convenient servers for static configuration cases
# (see also net-dns feature)
if
[
-d
/etc/net/ifaces/lo
]
;
then
{
echo
"# yandex"
...
...
@@ -17,3 +18,4 @@ find /var -name resolv.conf -or -name nsswitch.conf -delete
# hasher might have carried host /etc/hosts over, need to overwrite
echo
"127.0.0.1 localhost.localdomain localhost"
>
/etc/hosts
sed
-ri
"/^(search|nameserver)/d"
/etc/resolv.conf
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