mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-15 03:51:54 +00:00
* Update README.md, make sure the disclaimer is seen before install instructions. * update ustorage to have temp readings on some samsung ssds (stupid samsung) * Patch and support ulcmd relying on output from ubnteeprom * Move away from ubnthal FINALLY now that we patched ulcmd (hacky but works!) * added README.md to ubnteeprom, since I expect at somepoint folks will fork/use it for other projects. * Added our own kernel module to force mtd's RO, which does a better job than ubnthal did :)
23 lines
602 B
Bash
Executable file
23 lines
602 B
Bash
Executable file
#!/bin/bash
|
|
|
|
case "$1" in
|
|
start)
|
|
# Load our kernel modules
|
|
# /usr/sbin/modprobe ubnthal # No longer needed, ubnteeprom replaced it in userspace
|
|
/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
|