Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Łukasz Nowak
slapos.package
Commits
bbb6953b
Commit
bbb6953b
authored
Sep 23, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: don't rely on default route for re6st interface option
parent
b4e7544e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
playbook/roles/ors/files/configure-re6st.sh
playbook/roles/ors/files/configure-re6st.sh
+7
-1
No files found.
playbook/roles/ors/files/configure-re6st.sh
View file @
bbb6953b
#!/bin/bash
#!/bin/bash
IFACE
=
"
$(
ip route |
grep
default |
sed
's/.*dev \(\w*\)\( .*$\|$\)/\1/g'
)
"
if
ip
-6
a show dev enp0s31f6 |
grep
-q
fe80
;
then
IFACE
=
"enp0s31f6"
elif
ip
-6
a show dev enp2s0 |
grep
-q
fe80
;
then
IFACE
=
"enp2s0"
else
exit
;
fi
CONF
=
"/etc/re6stnet/re6stnet.conf"
CONF
=
"/etc/re6stnet/re6stnet.conf"
sed
-i
'/^interface/d'
$CONF
sed
-i
'/^interface/d'
$CONF
# Don't run re6st with interface option at Lille Office
# Don't run re6st with interface option at Lille Office
...
...
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