Update the LED boot behavior

Update the LED status to be green LED only after the login prompts is
available (getty.target)

Bug: 171704186
Change-Id: Ib92e37610ca64c46beecb96795bd4242ce5648e8
diff --git a/boot-led.sh b/boot-led.sh
new file mode 100755
index 0000000..60fc564
--- /dev/null
+++ b/boot-led.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+# Define LED behavior in boot. Turn off the Red LED and keep the Green LED on.
+
+echo 405 > /sys/class/gpio/export
+echo 406 > /sys/class/gpio/export
+
+echo out > /sys/class/gpio/gpio405/direction
+echo 0 > /sys/class/gpio/gpio405/value
+echo out > /sys/class/gpio/gpio406/direction
+echo 1 > /sys/class/gpio/gpio406/value
+
+echo 405 > /sys/class/gpio/unexport
+echo 406 > /sys/class/gpio/unexport
diff --git a/debian/changelog b/debian/changelog
index c6be13a..d04aecc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
-excelsior-tools (1-3) UNRELEASED; urgency=medium
+excelsior-tools (1-3) mendel-eagle; urgency=medium
 
   * Fix pinout assignment.
+  * Update LED boot notification behavior.
 
  -- Coral Team <coral-support@google.com>  Mon, 23 Nov 2020 16:11:41 -0800
 
diff --git a/debian/excelsior-tools.install b/debian/excelsior-tools.install
index b0ccc91..eb6cd83 100644
--- a/debian/excelsior-tools.install
+++ b/debian/excelsior-tools.install
@@ -1,4 +1,6 @@
+boot-led.sh /usr/bin
 pinout /usr/bin
 snapshot /usr/bin
 debian/etc /
 debian/docs/END_USER_LICENSE /usr/share/doc/excelsior-tools/
+debian/lib /
diff --git a/debian/lib/systemd/system/boot-led.service b/debian/lib/systemd/system/boot-led.service
new file mode 100644
index 0000000..90a750b
--- /dev/null
+++ b/debian/lib/systemd/system/boot-led.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Update LED behavior after boot
+After=getty.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/boot-led.sh
+
+[Install]
+WantedBy=multi-user.target