File kbluetooth.default.sh of Package kdebluetooth
#!/bin/sh
kbluetooth_autostart=
if test -n "$(pidof hcid)"; then
kbluetooth_autostart="true"
fi
if test -e $HOME/.kde/share/config/kbluetoothrc; then
return
# we don't overwrite an existing config
else
echo "[General]" > $HOME/.kde/share/config/kbluetoothrc
# kconfig will merge it in case we overwrite another setting
if test -n "$kbluetooth_autostart"; then
echo "AutoStart=$kbluetooth_autostart" >> $HOME/.kde/share/config/kbluetoothrc
else
echo "AutoStart=false" >> $HOME/.kde/share/config/kbluetoothrc
fi
fi