Finaly LEDs are
#!/bin/ash/ set -xv echo "SLOW GREEN" > /tmp/status/led-manager/led3 sleep 3 /usr/local/sbin/cli status -s | grep FEATURE_ > /tmp/license.txt eval $(/usr/local/sbin/cli status -s | grep SERIAL_NUMBER) cp /mnt/media/autorun/$SERIAL_NUMBER\.lic /tmp/ || echo "FAST RED" > /tmp/status/led-manager/led3 sleep 3 if cli update license file:///tmp/$SERIAL_NUMBER\.lic; then sleep 5 /usr/local/sbin/cli status -s | grep FEATURE_ > /tmp/license_new.txt for i in $(ls /sys/class/leds/*green/brightness); do echo 1 > $i; done if cmp -s /tmp/license.txt /tmp/license_new.txt; then for i in $(ls /sys/class/leds/*red/brightness); do echo 1 > $i; done fi else sleep 5 for i in $(ls /sys/class/leds/*red/brightness); do echo 1 > $i; done fi rm /tmp/license.txt license_new.txt /tmp/license_new.txt /tmp/$SERIAL_NUMBER\.lic