From: Arne Fitzenreiter <arne_f@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 3/3] initskripts: add OrangePi R1 Plus LTS
Date: Fri, 28 Apr 2023 19:36:23 +0000 [thread overview]
Message-ID: <20230428193623.2307228-3-arne_f@ipfire.org> (raw)
In-Reply-To: <20230428193623.2307228-1-arne_f@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 2571 bytes --]
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
---
src/initscripts/system/leds | 11 +++++++++++
src/initscripts/system/partresize | 10 +++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/initscripts/system/leds b/src/initscripts/system/leds
index 7522ce94d..464a71043 100644
--- a/src/initscripts/system/leds
+++ b/src/initscripts/system/leds
@@ -144,6 +144,11 @@ case "${1}" in
setup_netdev_trigger nanopi-r4s:green:wan ${RED_DEV} tx rx
setup_netdev_trigger nanopi-r4s:green:lan ${GREEN_DEV} tx rx
+ # OrangePi R1 Plus
+ setup_heartbeat_trigger red:status
+ setup_netdev_trigger green:wan ${RED_DEV} tx rx
+ setup_netdev_trigger green:lan ${GREEN_DEV} tx rx
+
exit 0
;;
@@ -190,6 +195,12 @@ case "${1}" in
disable_led_trigger nanopi-r4s:green:wan
disable_led_trigger nanopi-r4s:green:lan
+ # OrangePi R1 Plus stop
+ disable_led_trigger red:status
+ enable_led red:status
+ disable_led_trigger green:wan
+ disable_led_trigger green:lan
+
exit 0
;;
diff --git a/src/initscripts/system/partresize b/src/initscripts/system/partresize
index 147405e1e..272fbe482 100644
--- a/src/initscripts/system/partresize
+++ b/src/initscripts/system/partresize
@@ -2,7 +2,7 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2022 IPFire Team <info(a)ipfire.org> #
+# Copyright (C) 2007-2023 IPFire Team <info(a)ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
@@ -71,6 +71,14 @@ case "${1}" in
echo ethaddr=$SWMAC:00 >> /boot/uEnv.txt
echo eth1addr=$SWMAC:01 >> /boot/uEnv.txt
;;
+ Xunlong\ Orange\ Pi\ R1\ Plus* )
+ # Generate MAC address at first boot
+ # This board should have mac addresses in rom but uboot
+ # doesnt set it for fist nic
+ SWMAC=`printf "%1x2:%02x:%02x:%02x:%02x" $[RANDOM%16] $[RANDOM%256] $[RANDOM%256] $[RANDOM%256] $[RANDOM%256]`
+ echo ethaddr=$SWMAC:00 >> /boot/uEnv.txt
+ echo eth1addr=$SWMAC:01 >> /boot/uEnv.txt
+ ;;
esac 2>/dev/null
if [ -e /boot/grub/grub.cfg ]; then
--
2.34.1
prev parent reply other threads:[~2023-04-28 19:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-28 19:36 [PATCH 1/3] kernel: " Arne Fitzenreiter
2023-04-28 19:36 ` [PATCH 2/3] u-boot: " Arne Fitzenreiter
2023-04-28 19:36 ` Arne Fitzenreiter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230428193623.2307228-3-arne_f@ipfire.org \
--to=arne_f@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox