proto-shell: fix legacy proto_config_add_* functions, make them wrap around config_add_*
authorFelix Fietkau <nbd@openwrt.org>
Thu, 31 Oct 2013 11:20:32 +0000 (12:20 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 31 Oct 2013 11:20:48 +0000 (12:20 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
scripts/netifd-proto.sh

index 76dcd8dcae777213383642c970e42e802f95377e..9f062d8a0c4495667e2c996b0e597bd52ba1bd5d 100644 (file)
@@ -4,15 +4,15 @@ NETIFD_MAIN_DIR="${NETIFD_MAIN_DIR:-/lib/netifd}"
 . $NETIFD_MAIN_DIR/utils.sh
 
 proto_config_add_int() {
-       _config_add_generic "$1" 5
+       config_add_int "$@"
 }
 
 proto_config_add_string() {
-       _config_add_generic "$1" 3
+       config_add_string "$@"
 }
 
 proto_config_add_boolean() {
-       _config_add_generic "$1" 7
+       config_add_boolean "$@"
 }
 
 _proto_do_teardown() {