UNVR-NAS/overlay/filesystem/usr/lib/init/boot/ubnt-init.sh
Chris Blake 7c35890137 fix: ubnthal cleaning
Removing these fully now as we do not need to rely on them anymore.
2024-06-16 14:11:19 -05:00

22 lines
509 B
Bash
Executable file

#!/bin/bash
case "$1" in
start)
# Load our kernel modules
/usr/sbin/modprobe ubnt-mtd-lock # Force our /dev/mtd* as RO
/usr/sbin/modprobe btrfs
# 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