Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[patch proposal] LEDs in firstrun

Featured Replies

Hi,

on a lime2 the firstrun script hangs as it doesn't seem to have a red or blue LED.
So I'd like to propose the following change which shouldn't break anything but add the green one. Unless some vendor adds even more colors. :lol:

Not sure if the trailing "|| true" is the best solution to make sure the script will never fail?

diff --git a/scripts/firstrun b/scripts/firstrun
index 760cf0d..2f2b222 100644
--- a/scripts/firstrun
+++ b/scripts/firstrun
@@ -119,8 +119,8 @@ adjust_sunxi_settings() {
         sed -i "s/^MAC_ADDR=.*/MAC_ADDR=${MACADDR}/" /etc/default/brcm40183 \
         echo -e "\n### [firstrun] Use MAC address ${MACADDR} for Bluetooth from now" >>${Log})
     
-    # trigger red or blue LED as user feedback
-    echo heartbeat >/sys/class/leds/*red*/trigger 2>/dev/null || echo heartbeat >/sys/class/leds/*blue*/trigger 2>/dev/null    
+    # trigger red, blue or green LED as user feedback
+    echo heartbeat >/sys/class/leds/*red*/trigger 2>/dev/null || echo heartbeat >/sys/class/leds/*blue*/trigger 2>/dev/null || echo heartbeat >/sys/class/leds/*green*/trigger 2>/dev/null || true
     [ -f /etc/wicd/wired-settings.conf ] && \
         read HOSTNAME </etc/hostname
         sed -i "s/^dhcphostname =.*/dhcphostname = ${HOSTNAME}/" /etc/wicd/wired-settings.conf && \

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.