mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
ncm: sort config variables a little and fix minor bugs
Group 'local' declarations and 'json_get_vars', sort alphabetically within groups, and split off more generic parameters. - delegate and sourcefilter were not declared as local variables Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
This commit is contained in:
parent
bf768867dc
commit
650410fca4
@ -28,12 +28,13 @@ proto_ncm_init_config() {
|
||||
proto_ncm_setup() {
|
||||
local interface="$1"
|
||||
|
||||
local manufacturer initialize setmode connect finalize devname devpath ifpath
|
||||
local connect context_type devname devpath finalize ifpath initialize manufacturer setmode
|
||||
|
||||
local device ifname apn auth username password pincode delay mode pdptype profile $PROTO_DEFAULT_OPTIONS
|
||||
json_get_vars device ifname apn auth username password pincode delay mode pdptype sourcefilter delegate profile $PROTO_DEFAULT_OPTIONS
|
||||
local delegate sourcefilter $PROTO_DEFAULT_OPTIONS
|
||||
json_get_vars delegate sourcefilter $PROTO_DEFAULT_OPTIONS
|
||||
|
||||
local context_type
|
||||
local apn auth delay device ifname mode password pdptype pincode profile username
|
||||
json_get_vars apn auth delay device ifname mode password pdptype pincode profile username
|
||||
|
||||
[ "$metric" = "" ] && metric="0"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user