From: Felix Fietkau Date: Thu, 31 Oct 2013 11:20:32 +0000 (+0100) Subject: proto-shell: fix legacy proto_config_add_* functions, make them wrap around config_add_* X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=199723ed921160c029a0d15fa95914ddfcdc5cb9;p=oweals%2Fnetifd.git proto-shell: fix legacy proto_config_add_* functions, make them wrap around config_add_* Signed-off-by: Felix Fietkau --- diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index 76dcd8d..9f062d8 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -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() {