Forked from TimoDJatomika/unifiLedControllScript.sh
Last active
December 17, 2021 08:49
-
-
Save CajuCLC/9a8ee1a98474f70fa8ac76480a32f156 to your computer and use it in GitHub Desktop.
Just a simple script to controll the led color of your ubiquiti unifi AP (PRO)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# author: Timo Stankowitz <[email protected]> | |
# create date: 2016-07-10 | |
# last change: 2016-07-10 | |
# with this script you can change the led color of your ubiquiti unifi AP | |
# usage: ./script.sh colorValue | |
# e.g.: ./script.sh 2 | |
# there are differnet colors that you can choose | |
# 1: Blue | |
# 2: White | |
# 3: Blue + White | |
# 4: Off | |
# 10: Blue + White FAST | |
pathToConfig="/var/etc/persistent/cfg/mgmt" | |
# delete line | |
sed -i '/mgmt.led_pattern_override/d' $pathToConfig | |
# make sure change is instant | |
echo "1" > /proc/gpio/led_pattern | |
# replace with your color | |
echo "mgmt.led_pattern_override=$1" >> $pathToConfig | |
# save config | |
save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment