From 1c75bf23185bad306c0df8fd0ad95bc7862fd9c0 Mon Sep 17 00:00:00 2001 From: Mike Cousins Date: Tue, 29 Mar 2022 15:01:15 -0400 Subject: [PATCH] board/opentrons/ot2: remove bluetooth --- .../udev/rules.d/96-bluetooth-usb-hotplug.rules | 2 -- .../ot2/rootfs-overlay/usr/bin/btusbstart | 16 ---------------- .../usr/lib/systemd/system/btusbstarter.service | 9 --------- .../usr/lib/systemd/system/btusbstarter@.service | 9 --------- 4 files changed, 36 deletions(-) delete mode 100644 board/opentrons/ot2/rootfs-overlay/etc/udev/rules.d/96-bluetooth-usb-hotplug.rules delete mode 100755 board/opentrons/ot2/rootfs-overlay/usr/bin/btusbstart delete mode 100644 board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter.service delete mode 100644 board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter@.service diff --git a/board/opentrons/ot2/rootfs-overlay/etc/udev/rules.d/96-bluetooth-usb-hotplug.rules b/board/opentrons/ot2/rootfs-overlay/etc/udev/rules.d/96-bluetooth-usb-hotplug.rules deleted file mode 100644 index de74df1c75..0000000000 --- a/board/opentrons/ot2/rootfs-overlay/etc/udev/rules.d/96-bluetooth-usb-hotplug.rules +++ /dev/null @@ -1,2 +0,0 @@ -# Bluetooth module hotpluggable support, attempting to support any USB BT adapter -SUBSYSTEMS=="usb", KERNEL=="hci[0-9]*", ACTION=="add", ENV{SYSTEMD_WANTS}+="btusbstarter@%k.service" diff --git a/board/opentrons/ot2/rootfs-overlay/usr/bin/btusbstart b/board/opentrons/ot2/rootfs-overlay/usr/bin/btusbstart deleted file mode 100755 index ecd49be5db..0000000000 --- a/board/opentrons/ot2/rootfs-overlay/usr/bin/btusbstart +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# Automatically start the BT USB dongle -set -e -set -v - -# If passed at least one argument, use the first as dev. Otherwise, use hci0 by default -echo "Number of arguments: $#" -if [ $# -gt 0 ] -then - dev="$1" - echo "Using dev=$1" -else - dev="hci0" -fi -echo $(/bin/hciconfig -a) -/bin/hciconfig "$dev" up diff --git a/board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter.service b/board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter.service deleted file mode 100644 index 01a739b1ca..0000000000 --- a/board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=USB Bluetooth Adapter setup (on boot) -Requires=bluetooth.service -After=bluetooth.service -[Service] -Type=simple -ExecStart=/usr/bin/btusbstart -[Install] -WantedBy=opentrons.target diff --git a/board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter@.service b/board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter@.service deleted file mode 100644 index 6dcf24148a..0000000000 --- a/board/opentrons/ot2/rootfs-overlay/usr/lib/systemd/system/btusbstarter@.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=USB Bluetooth Adapter setup (hotpluggable) -Requires=bluetooth.service -After=bluetooth.service -[Service] -Type=simple -ExecStart=/usr/bin/btusbstart %i -[Install] -WantedBy=opentrons.target