====== Install licenses via USB stick ====== ===== How-to ===== - Router must be in [[faq:install-licenses-via-usb-stick#reset-router-into-factor-reset-state|factory reset state]] (unconfigured) - Format an USB-Stick FAT16/32 - Download the [[faq:install-licenses-via-usb-stick#files|files]] autorun.key and autorun.sh - Copy autorun.key and autorun.sh on the stick - If you got the licenses in an archive, extract the license files - Copy all the license files (00112B*.lic) on the stick - Power on the router and wait until it has booted completely. The STAT LED will turn solid green. - Plug in the USB stick and the WLAN1 LED will blink slow green. - When the installation starts, all LEDs blink green and it takes some time. Finaly LEDs are * green: ok * yellow: ok, but there was no license change, e.g. installed the same license two times * red: something went wrong. (WLAN1 blinking: red = no license file, yellow = license file corrupt) ===== Files ===== #!/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 ===== Reset router into factor reset state ===== - Power off you device - Place a tiny pin in to the reset hole and press the reset button - Power on the device and keep the reset button pressed - Keep the reset button pressed for **aprrox. 40 sec.** until all LEDs flashed up in the **color RED** (excluded are NB800 modules they will flash green) - Release the reset button now