Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
6ba15fe7
Commit
6ba15fe7
authored
Feb 09, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rootfs: rename network interfaces from wrX to wriX+1 in hwinfo
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
8fe5ae88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hwinfo
userspace/rootfs_override/etc/init.d/hwinfo
+3
-3
No files found.
userspace/rootfs_override/etc/init.d/hwinfo
View file @
6ba15fe7
...
...
@@ -5,7 +5,7 @@
# people upgrading from older wr-switch-sw releases.
#
# This script is run late, because it will have effect at next boot only.
# If we run it too early, we can't get the mac address from wr
0
which does
# If we run it too early, we can't get the mac address from wr
i1
which does
# not exist yet.
# This allows me to pass WRS_VERBOSE=y on the command line...
...
...
@@ -39,9 +39,9 @@ fi
# we need the eth addresses
ethaddr
=
$(
ifconfig eth0 |
grep
HWaddr |
awk
'{print $5}'
)
wraddr
=
$(
ifconfig wr
0
|
grep
HWaddr |
awk
'{print $5}'
)
wraddr
=
$(
ifconfig wr
i1
|
grep
HWaddr |
awk
'{print $5}'
)
# if we run this early (upgrade mess from v4.0) there is no wr
0
,
# if we run this early (upgrade mess from v4.0) there is no wr
i1
,
# so pick if from the command line:
if
[
"x
$wraddr
"
=
"x"
]
;
then
wraddr
=
$(
awk
'BEGIN {FS="="; RS=" "} /wr_nic.macaddr/ {print $2}'
\
...
...
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