ATF_PLAT="sun50i_a64" source "${BASH_SOURCE%/*}/include/sunxi64_common.inc" OVERLAY_PREFIX='sun50i-h5' [[ -z $CPUMIN ]] && CPUMIN=480000 [[ -z $CPUMAX ]] && CPUMAX=1368000 GOVERNOR=ondemand ASOUND_STATE='asound.state.sun50iw2-dev' family_tweaks_s() { if [[ -f $SDCARD/lib/systemd/system/ap6212-bluetooth.service ]]; then # install and enable Bluetooth chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1" chroot $SDCARD /bin/bash -c "systemctl --no-reload enable ap6212-bluetooth.service >/dev/null 2>&1" fi if [[ -f $SDCARD/lib/systemd/system/rtl8723bs-bluetooth.service ]]; then # install and enable Bluetooth chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1" chroot $SDCARD /bin/bash -c "systemctl --no-reload enable rtl8723bs-bluetooth.service >/dev/null 2>&1" fi } family_tweaks_bsp() { if [[ $BOARD == orangepizeroplus2h5 ]]; then install -m 755 $EXTER/packages/blobs/bt/brcm_patchram_plus/brcm_patchram_plus_$ARCH $destination/usr/bin/brcm_patchram_plus cp $EXTER/packages/bsp/sunxi/ap6212-bluetooth.service $destination/lib/systemd/system/ fi if [[ $BOARD == orangepiprime ]]; then install -m 755 $EXTER/packages/blobs/bt/hciattach/rtk_hciattach_$ARCH $destination/usr/bin/rtk_hciattach cp $EXTER/packages/bsp/sunxi/rtl8723bs-bluetooth.service $destination/lib/systemd/system/ fi }