iopsys-feed/layer2interface/broadcom/etc/hotplug.d/dsl/20-leds
2018-01-04 18:41:32 +01:00

8 lines
233 B
Text

if [ "$STATUS" == "up" ]; then
ubus call led.dsl set '{"state":"ok"}'
elif [ "$STATUS" == "down" ]; then
ubus call led.dsl set '{"state":"off"}'
elif [ "$STATUS" == "training" ]; then
ubus call led.dsl set '{"state":"alert"}'
fi