Maybe the $HOSTNAME variable isn't present when rc.local gets executed, or maybe the command gets executed, but when the Bluetooth managers starts it changes that again to the wrong hostname?
Maybe the $HOSTNAME variable isn't present when rc.local gets executed, or maybe the command gets executed, but when the Bluetooth managers starts it changes that again to the wrong hostname?