summaryrefslogtreecommitdiffhomepage
path: root/dummy/netifd-proto.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-27 11:01:32 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-27 11:01:32 +0200
commit3c1a5bf324c8f2476239c4e49687ca252d3bf4c8 (patch)
tree4bb2bb1e1631344898fed229b9ee0c3615343895 /dummy/netifd-proto.sh
parent4ff6bcbee05983037f6a629b114beace5d98bdbe (diff)
fold the _init callback into _init_config
Diffstat (limited to 'dummy/netifd-proto.sh')
-rwxr-xr-xdummy/netifd-proto.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh
index 11337c2..e7f0d9e 100755
--- a/dummy/netifd-proto.sh
+++ b/dummy/netifd-proto.sh
@@ -229,12 +229,11 @@ init_proto() {
json_init
json_add_string "name" "$1"
- eval "$1_init"
- json_add_boolean no-device "$no_device"
- json_add_boolean available "$available"
json_add_array "config"
eval "$1_init_config"
json_close_array
+ json_add_boolean no-device "$no_device"
+ json_add_boolean available "$available"
json_dump
}
;;