[ "$enabled" -gt 0 ] && /usr/sbin/hcid $args
}
-sdpd_config() {
- local cfg="$1"
- args=""
- append_bool "$cfg" nodaemon "-n"
- append_bool "$cfg" something "-m"
- config_get_bool enabled "$cfg" "enabled" '1'
- [ "$enabled" -gt 0 ] && /usr/sbin/sdpd $args
-}
-
rfcomm_config() {
local cfg="$1"
args=""
config_load bluetooth
config_foreach hcid_config hcid
- config_foreach sdpd_config sdpd
config_foreach rfcomm_config rfcomm
config_foreach dund_config dund
config_foreach pand_config pand
killall dund
killall pand
/usr/bin/rfcomm release all
- killall sdpd
killall hcid
}