Skip to content
Snippets Groups Projects
Commit 91f6fb18 authored by Tian Yang's avatar Tian Yang
Browse files

rstp: Change syntax usage for 'local' keyword


Keyword 'local' should only be used within function in busybox 1.25.0+.

Signed-off-by: default avatarTian Yang <tiany@codeaurora.org>
Change-Id: I382e3c8016b76377e977445577ab2e9f80b5bbd9
#!/bin/sh
# Copyright (c) 2013, 2018 The Linux Foundation. All rights reserved.
# Copyright (c) 2013, 2018, 2020 The Linux Foundation. All rights reserved.
BRIFNAME=
rstpctl_bridge_list() {
......@@ -17,10 +17,7 @@ rstpctl_bridge_list() {
}
[ "$ACTION" = "ifup" ] && {
. /lib/functions.sh
. /lib/functions/network.sh
rstpctl_bridge_device_enable() {
local ifname
local enabled
local autoMode
......@@ -47,4 +44,13 @@ rstpctl_bridge_list() {
fi
}
}
}
[ "$ACTION" = "ifup" ] && {
. /lib/functions.sh
. /lib/functions/network.sh
rstpctl_bridge_device_enable
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment