summaryrefslogtreecommitdiff
path: root/personal-enabler
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-03-08 21:19:45 +0100
committerKarel Kočí <cynerd@email.cz>2021-03-08 21:19:45 +0100
commit5f2f8d4cf0c928bfd086099b19a9ceedbf40f805 (patch)
treed0b4e5cf097571b352f56af6180c6da81d19d3cd /personal-enabler
parentb949c727fab509e1650563b2fcce9c0a6c5548ff (diff)
downloadopenwrt-personal-pkgs-5f2f8d4cf0c928bfd086099b19a9ceedbf40f805.tar.gz
openwrt-personal-pkgs-5f2f8d4cf0c928bfd086099b19a9ceedbf40f805.tar.bz2
openwrt-personal-pkgs-5f2f8d4cf0c928bfd086099b19a9ceedbf40f805.zip
personal-enabler: add rainbow-omnia
Diffstat (limited to 'personal-enabler')
-rw-r--r--personal-enabler/Makefile1
-rw-r--r--personal-enabler/files/rainbow-omnia.sh14
2 files changed, 15 insertions, 0 deletions
diff --git a/personal-enabler/Makefile b/personal-enabler/Makefile
index a39d02b..2ad7302 100644
--- a/personal-enabler/Makefile
+++ b/personal-enabler/Makefile
@@ -36,3 +36,4 @@ Build/Compile:=:
$(eval $(call PKG,common,+updater-ng +user-notify))
$(eval $(call PKG,sentinel,+pkglists +sentinel-proxy))
$(eval $(call PKG,public-ssh,+uci +firewall))
+$(eval $(call PKG,rainbow-omnia,+uci +omnia-rainbow))
diff --git a/personal-enabler/files/rainbow-omnia.sh b/personal-enabler/files/rainbow-omnia.sh
new file mode 100644
index 0000000..3fb27a3
--- /dev/null
+++ b/personal-enabler/files/rainbow-omnia.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+uci -q batch <<EOF
+ set rainbow.all=led
+ set rainbow.all.status=auto
+ set rainbow.all.color=blue
+ set rainbow.pwr=led
+ set rainbow.pwr.status=auto
+ set rainbow.pwr.color=white
+ set rainbow.wan=led
+ set rainbow.wan.status=auto
+ set rainbow.wan.color=green
+ commit rainbow
+EOF
+/etc/init.d/rainbow restart