From 2d7d5c68d06f879d92eaec6e33757ee64e360fd0 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Fri, 11 Jan 2019 14:00:44 +0200 Subject: [PATCH] S37bluetooth: use prepare_conf --- board/common/overlay/etc/init.d/S37bluetooth | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/board/common/overlay/etc/init.d/S37bluetooth b/board/common/overlay/etc/init.d/S37bluetooth index 76e570ab00..1714ce0704 100755 --- a/board/common/overlay/etc/init.d/S37bluetooth +++ b/board/common/overlay/etc/init.d/S37bluetooth @@ -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