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
2
Issues
2
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
config.mk
features.in/net/config.mk
+0
-0
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
features.in/net/rootfs/image-scripts.d/50-net-resolv
View file @
7459a74a
#!/bin/sh
#!/bin/sh
# offer some convenient servers for static configuration cases
# offer some convenient servers for static configuration cases
# (see also net-dns feature)
if
[
-d
/etc/net/ifaces/lo
]
;
then
if
[
-d
/etc/net/ifaces/lo
]
;
then
{
{
echo
"# yandex"
echo
"# yandex"
...
@@ -17,3 +18,4 @@ find /var -name resolv.conf -or -name nsswitch.conf -delete
...
@@ -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
# hasher might have carried host /etc/hosts over, need to overwrite
echo
"127.0.0.1 localhost.localdomain localhost"
>
/etc/hosts
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