mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
feat: initial bluetooth support (#9)
* Enable Bluetooth LE radio support * Build our own bccmd which we need to setup/enable this BT chipset sadly * Use our own tool we build to interface with the ubnt eeprom, so we can not rely on their custom kernel module * Also fix HDDs not spinning down on shutdown, doing something similar to how unifi does it but a tad more generic.
This commit is contained in:
parent
fe3b4cd76f
commit
9ef1a72228
15 changed files with 678 additions and 20 deletions
|
@ -1,8 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Load our kernel modules
|
||||
/usr/sbin/modprobe ubnthal
|
||||
/usr/sbin/modprobe btrfs
|
||||
case "$1" in
|
||||
start)
|
||||
# Load our kernel modules
|
||||
/usr/sbin/modprobe ubnthal
|
||||
/usr/sbin/modprobe btrfs
|
||||
|
||||
# Set our kernel panic timeout SUPER short so we reboot on crash
|
||||
echo 2 > /proc/sys/kernel/panic
|
||||
# Set our kernel panic timeout SUPER short so we reboot on crash
|
||||
echo 2 > /proc/sys/kernel/panic
|
||||
|
||||
# Setup bluetooth hci0 device
|
||||
/usr/lib/init/boot/ubnt-bt.sh hci0
|
||||
;;
|
||||
stop)
|
||||
# Tear down BT
|
||||
hciconfig hci0 down
|
||||
;;
|
||||
*)
|
||||
echo "Invalid command $1"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue