Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
networking
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
femto5g
oss
system
feeds
networking
Commits
1e5fbdc5
Commit
1e5fbdc5
authored
3 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "rstp: Fix the empty bridge name issue"
parents
09141b9f
70dbabc9
Branches
qsdk/NHSS.QSDK.12.1.5.r1
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rstp/files/etc/init.d/rstp
+3
-4
3 additions, 4 deletions
rstp/files/etc/init.d/rstp
with
3 additions
and
4 deletions
rstp/files/etc/init.d/rstp
+
3
−
4
View file @
1e5fbdc5
...
...
@@ -183,15 +183,14 @@ board_recover() {
__brctl_stp_on_or_off
()
{
local
config
=
"
$1
"
local
on_or_off
=
"
$2
"
local type
br
_device br_ifname
local type
br
config_get
type
"
$config
"
type
[
-z
"
$type
"
-o
!
"
$type
"
=
"bridge"
]
&&
return
br_device
=
"
$config
"
network_get_device br_ifname
$br_device
network_get_physdev br
$1
brctl stp
$br
_ifname
$on_or_off
brctl stp
$br
$on_or_off
sleep
1
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment