S37bluetooth: use prepare_conf

This commit is contained in:
Calin Crisan 2019-01-11 14:00:44 +02:00
parent 6dff0a0ad1
commit 2d7d5c68d0

View File

@ -4,14 +4,7 @@ sys_conf="/etc/bluetooth.conf"
boot_conf="/boot/bluetooth.conf"
conf="/data/etc/bluetooth.conf"
if ! [[ -f $conf ]]; then
if [[ -f $boot_conf ]]; then
cp $boot_conf $conf
elif [[ -f $sys_conf ]]; then
cp $sys_conf $conf
fi
fi
prepare_conf $conf $sys_conf $boot_conf
test -f $conf || exit 0
hci=hci0