Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
62ed7f2b
Commit
62ed7f2b
authored
Mar 22, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-interfaces: install packages for bonding and/or bridge if needed
parent
c316bc87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
setup-interfaces.in
setup-interfaces.in
+9
-1
No files found.
setup-interfaces.in
View file @
62ed7f2b
...
...
@@ -3,6 +3,8 @@
PROGRAM
=
setup-interfaces
PREFIX
=
PKGS
=
for
i
in
./libalpine.sh
$PREFIX
/lib/libalpine.sh
;
do
[
-e
$i
]
&&
.
$i
&&
break
done
...
...
@@ -354,9 +356,11 @@ prompt_for_interfaces() {
echo
"auto
$iface
"
>>
interfaces
echo
"iface
$iface
inet
$type
"
>>
interfaces
if
[
-n
"
$bridge_ports
"
]
;
then
PKGS
=
"
$PKGS
bridge"
echo
-e
"
\t
bridge-ports
$bridge_ports
"
>>
interfaces
fi
if
[
-n
"
$bond_slaves
"
]
;
then
PKGS
=
"
$PKGS
bonding"
echo
-e
"
\t
bond-slaves
$bond_slaves
"
>>
interfaces
fi
case
$type
in
...
...
@@ -395,6 +399,10 @@ prompt_for_interfaces() {
${
EDITOR
:-
vi
}
interfaces
fi
if
[
-n
"
$PKGS
"
]
;
then
apk add
-q
$PKGS
fi
mkdir
-p
$ROOT
/etc/network
cp
interfaces
$ROOT
/etc/network/
}
...
...
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