mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
fix: migrate UNVR init logic
Let's keep ulcmd for the pro only, and move LED stuff elsewhere.
This commit is contained in:
parent
24d98456e6
commit
6f01afd72b
5 changed files with 26 additions and 29 deletions
|
@ -11,10 +11,18 @@ case "$1" in
|
|||
|
||||
# Setup bluetooth hci0 device
|
||||
/usr/lib/init/boot/ubnt-bt.sh hci0
|
||||
|
||||
# If UNVR, turn on LED
|
||||
if [ -f "/sys/class/leds/ulogo_ctrl/pattern" ]; then
|
||||
# Set boot LED to blue
|
||||
# 2=white, 1=blue, 0=off, needs a value set with :x for ms
|
||||
echo 1:500 > /sys/class/leds/ulogo_ctrl/pattern
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
# Tear down BT
|
||||
hciconfig hci0 down
|
||||
# LED shutdown on UNVR4 is done via systemd/system-shutdown/unifi-shutdown
|
||||
;;
|
||||
*)
|
||||
echo "Invalid command $1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue