Skip to content
Snippets Groups Projects
Commit 212feb9c authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

base-files: uci-defaults-new: don't store switch attr numbers as strings


Signed-off-by: default avatarJo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47643
parent 6638374f
No related branches found
No related tags found
No related merge requests found
...@@ -91,11 +91,14 @@ ucidef_add_switch_attr() { ...@@ -91,11 +91,14 @@ ucidef_add_switch_attr() {
local val=$3 local val=$3
json_select_object switch json_select_object switch
json_select_object $name json_select_object $name
json_add_string $key $val
json_select ..
case "$val" in
[0-9]) json_add_int "$key" "$val" ;;
*) json_add_string "$key" "$val" ;;
esac
json_select ..
json_select .. json_select ..
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment