base-files: uci-defaults-new: don't store switch attr numbers as strings
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47643
This commit is contained in:
		| @@ -91,11 +91,14 @@ ucidef_add_switch_attr() { | ||||
| 	local val=$3 | ||||
|  | ||||
| 	json_select_object switch | ||||
|  | ||||
| 	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 .. | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jo-Philipp Wich
					Jo-Philipp Wich