checkconfig() { for CONF in HCID_ENABLE SDPD_ENABLE HIDD_ENABLE HIDD_OPTIONS \ RFCOMM_ENABLE RFCOMM_CONFIG DUND_ENABLE DUND_OPTIONS \ PAND_ENABLE PAND_OPTIONS ; do if [ "$(eval echo \${${CONF}})" ] ; then ewarn "${CONF} unused, please remove" \ "from /etc/conf.d/bluetooth" fi done if [ "${HIDD_ENABLE}" ] ; then if [ -x /etc/init.d/hidd ] ; then ewarn "hidd is not started by default via udev so" \ "please add it to the required runlevels" ewarn "using rc-update add hidd." elif grep -q "^Autostart=true" /etc/bluetooth/input.service then ewarn "you can now use the new input service" \ "interface to add HID devices," ewarn "to keep using hidd please enable the" \ "old-daemons USE flag and re-emerge" ewarn "net-wireless/bluez-utils" else ewarn "hid auto start is disabled in" \ "/etc/bluetooth/input.service" fi fi if [ "${RFCOMM_ENABLE}" ] ; then if grep -q "^Autostart=false" /etc/bluetooth/serial.service then ewarn "rfcomm auto start is disabled in" \ "/etc/bluetooth/serial.service" else ewarn "you can now use the new serial service" \ "interface to add rfcomm devices." fi fi if [ "${PAND_ENABLE}" ] ; then if grep -q "^Autostart=false" /etc/bluetooth/serial.service then ewarn "pand auto start is disabled in" \ "/etc/bluetooth/network.service" else ewarn "you can now use the new network serial" \ "service interface to add pand devices." fi fi return 0 }