Last active
December 17, 2021 08:44
-
-
Save TimoDJatomika/e5b4a900c2a39fc4a59bf2aeef6aebea 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 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 | |
pathToConfig="/var/etc/persistent/cfg/mgmt" | |
# delete line | |
sed -i '/mgmt.led_pattern_override/d' $pathToConfig | |
# replace with your color | |
echo "mgmt.led_pattern_override=$1" >> $pathToConfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment