checkconfig() { warn_oldconfig() { if [ "${1}" ] ; then ewarn "${1} unused, please remove from" \ "/etc/conf.d/bluetooth" fi } for CONF in HCID_ENABLE SDPD_ENABLE HIDD_ENABLE HIDD_OPTIONS \ RFCOMM_ENABLE RFCOMM_CONFIG DUND_ENABLE DUND_OPTIONS \ PAND_ENABLE PAND_OPTIONS ; do warn_oldconfig "${CONF}" 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 warn_service() { if [ "${1}" ] ; then if grep -q "^Autostart=false" \ /etc/bluetooth/${2}.service ; then ewarn "${3} auto start is disabled in" \ "/etc/bluetooth/${2}.service" else ewarn "you can now use the new ${2}" \ "service interface to add ${3}" \ "devices." fi fi } warn_service "${RFCOMM_ENABLE}" serial rfcomm warn_service "${PAND_ENABLE}" network pand return 0 }