mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-31 17:56:48 +04:00
netifd: localize internally used shell variables (#11567)
SVN-Revision: 32192
This commit is contained in:
1 parent
7cb42738e6
commit
eb9b3bdb4f
2 files changed
+3
-1
No files matched your search
@@ -18,6 +18,7 @@ proto_dhcp_setup() {
|
||||
local config="$1"
|
||||
local iface="$2"
|
||||
|
||||
local ipaddr hostname clientid vendorid broadcast reqopts
|
||||
json_get_vars ipaddr hostname clientid vendorid broadcast reqopts
|
||||
|
||||
local opt dhcpopts
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
find_config() {
|
||||
local device="$1"
|
||||
local ifdev ifl3dev ifobj
|
||||
for ifobj in `ubus list network.interface.\*`; do
|
||||
interface="${ifobj##network.interface.}"
|
||||
(
|
||||
@@ -36,7 +37,7 @@ ubus_call() {
|
||||
|
||||
fixup_interface() {
|
||||
local config="$1"
|
||||
local ifname type
|
||||
local ifname type device l3dev
|
||||
|
||||
config_get type "$config" type
|
||||
config_get ifname "$config" ifname
|
||||
|
||||
Reference in new issue
Block a user