Skip to content
Snippets Groups Projects
Verified Commit b868b826 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

rainbow: Start on background

parent 8251c1c3
Branches
Tags
No related merge requests found
......@@ -6,20 +6,32 @@ STOP=00
PID_FILE="/var/run/rainbow.pid"
start() {
# Signal the boot is finished
rainbow all enable blue
sleep 1
rainbow all enable green
sleep 1
reload() {
# Set the colors based on user preferrences
uci show rainbow | sed -ne 's/rainbow\.\([^.]*\)=led/\1/p' | sort | while read SECTION ; do
STATUS=$(uci get rainbow.$SECTION.status)
COLOR=$(uci get rainbow.$SECTION.color)
rainbow $SECTION $STATUS $COLOR
done
}
restart() {
rainbow all enable green
sleep 1
reload
}
start() {
(
# Signal the boot is finished
rainbow all enable blue
sleep 1
rainbow all enable green
sleep 1
reload
# Resume last intensity settings
rainbow intensity $(cat /etc/rainbow.magic)
) &
}
stop() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment