+hciattach_config() {
+ local cfg="$1"
+ args=""
+ append_string "$cfg" initspeed "-s" "115200"
+ append_string "$cfg" tty " " "ttyS1"
+ append_string "$cfg" type " " "csr"
+ append_string "$cfg" speed " " "115200"
+ append_string "$cfg" flow " " "noflow"
+ config_get_bool enabled "$cfg" "enabled" '1'
+ [ "$enabled" -gt 0 ] && /usr/sbin/hciattach $args
+}
+