From 05a825d91ee147d71ca774126d80b583d7b204c2 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 21 Aug 2016 11:08:39 +0200 Subject: [PATCH] Bluetooth enabler moved to tools --- extras/tools.sh | 14 ++++++++++++-- makeboarddeb.sh | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/extras/tools.sh b/extras/tools.sh index d6d69e8d33..4e1884af63 100644 --- a/extras/tools.sh +++ b/extras/tools.sh @@ -25,7 +25,7 @@ compile_tools() pack_to_deb() { - mkdir -p $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/{DEBIAN,usr/bin,lib/udev/rules.d} + mkdir -p $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/{DEBIAN,usr/bin,lib/udev/rules.d,lib/systemd/system} # set up control file cat <<-END > $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/DEBIAN/control @@ -42,11 +42,21 @@ compile_tools() Description: Armbian tools, temper, Cubie bt utils END + cat <<-END > $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/DEBIAN/postinst + systemctl enable brcm40183-patch.service + systemctl start brcm40183-patch.service + exit 0 + END + # temper cp $tmpdir/temper/src/pcsensor $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/usr/bin/temper # brcm cp $tmpdir/brcm/{brcm_bt_reset,brcm_patchram_plus} $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/usr/bin - + # brcm configs and service + install $SRC/lib/scripts/brcm40183 $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/etc/default + install $SRC/lib/scripts/brcm40183-patch.service $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/lib/systemd/system + install -m 755 $SRC/lib/scripts/brcm40183-patch $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/etc/init.d + cd $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH} find . -type f ! -regex '.*.hg.*' ! -regex '.*?debian-binary.*' ! -regex '.*?DEBIAN.*' -printf '%P ' | xargs md5sum > DEBIAN/md5sums cd $tmpdir diff --git a/makeboarddeb.sh b/makeboarddeb.sh index f6f7957415..430696e839 100644 --- a/makeboarddeb.sh +++ b/makeboarddeb.sh @@ -215,8 +215,8 @@ create_board_package() # bluetooth device enabler - for cubietruck # TODO: move to tools or sunxi-common.inc - install $SRC/lib/scripts/brcm40183 $destination/etc/default - install -m 755 $SRC/lib/scripts/brcm40183-patch $destination/etc/init.d + #install $SRC/lib/scripts/brcm40183 $destination/etc/default + #install -m 755 $SRC/lib/scripts/brcm40183-patch $destination/etc/init.d fi