The LED command controls the RGB LED on the front of the Packet Squirrel.

Options

LED [color] [pattern]

LED [state]

Colors

ColorResult
RRed
GGreen
BBlue
YYellow (Red + Green)
CCyan (Green + Blue)
MMagenta (Red + Blue)
WWhite (Red + Blue + Green)

Patterns

PatternResult
SOLIDNo blinking (default)
SLOWSlow symmetric blinking (1 second ON, 1 second OFF)
FASTFast symmetric blinking (100ms ON, 100ms OFF)
VERYFASTVery fast symmetric blinkig (10ms ON, 10ms OFF)
SINGLE1 100ms blink ON, 1 second OFF, repreating
DOUBLE2 100ms blinks ON, 1 second OFF, repeating
TRIPLE3 100ms blinks ON, 1 second OFF, repeating
QUAD4 100ms blinks ON, 1 second OFF, repeating
QUIN5 100ms blinks ON, 1 second OFF, repeating
ISINGLE1 100ms blink OFF, 1 second ON, repeating
IDOUBLE2 100ms blinks OFF, 1 second ON, repeating
ITRIPLE3 100ms blinks OFF, 1 second ON, repeating
IQUAD4 100ms blinks OFF, 1 second ON, repeating
IQUIN5 100ms blinks OFF, 1 second ON, repeating
SUCCESS1 second VERYFAST, followed by SOLID

States

Instead of setting a color+pattern, the LED command can also be used to set a standard color code for a state.

State Pattern
SETUP M SOLID
FAIL R SLOW
FAIL1 R SLOW
FAIL2 R FAST
FAIL3 R VERYFAST
ATTACK Y SINGLE
STAGE1 Y SINGLE
STAGE2 Y DOUBLE
STAGE3 Y TRIPLE
STAGE4 Y QUAD
STAGE5 Y QUIN
SPECIAL C ISINGLE
SPECIAL1 C ISINGLE
SPECIAL2 C IDOUBLE
SPECIAL3 C ITRIPLE
SPECIAL4 C IQUAD
SPECIAL5 C IQUIN
CLEANUP W FAST
FINISH G SUCCESS
OFF

Experimenting

You can experiment using the LED command live, either in the Web Shell in the web UI, or via ssh!

Running the LED command from theweb UI Web Shell.

Examples

  #!/bin/bash


NETMODE NAT

LED G SOLID
sleep 5
LED SPECIAL5
sleep 5
LED CLEANUP
sleep 5
LED M VERYFAST