diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-11 12:35:21 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-11 12:35:35 +0200 |
commit | 7f081660bf24fed49a716022a6ea17bb1dcde73a (patch) | |
tree | b64c2a4926b2e6370c53117f85dac0727e2bbf39 /proto/netifd-proto.sh | |
parent | f505119b07b89ad23f4264e77b0bf0f0c0400399 (diff) |
proto-shell: add a config option for setting PROTO_FLAG_NODEV
Diffstat (limited to 'proto/netifd-proto.sh')
-rwxr-xr-x | proto/netifd-proto.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/proto/netifd-proto.sh b/proto/netifd-proto.sh index b91863f..9aace59 100755 --- a/proto/netifd-proto.sh +++ b/proto/netifd-proto.sh @@ -33,14 +33,16 @@ data="$3" case "$cmd" in dump) add_protocol() { - immediate=0 + no_device=0 + available=0 add_default_handler "$1_init_config" json_init json_add_string "name" "$1" eval "$1_init" - json_add_boolean immediate "$immediate" + json_add_boolean no-device "$no_device" + json_add_boolean available "$available" json_add_array "config" eval "$1_init_config" json_close_array |